Skip to content

Commit f1b44d9

Browse files
committed
Add doc for undocumented attributes.
1 parent 42afa6a commit f1b44d9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

lib/softlayer/Datacenter.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ module SoftLayer
1717
# represent.
1818

1919
class Datacenter < SoftLayer::ModelBase
20+
21+
##
22+
# :attr_reader:
23+
# A short location description
2024
sl_attr :name
25+
26+
##
27+
# :attr_reader: long_name
28+
# A longer location description
2129
sl_attr :long_name, "longName"
2230

2331
##
@@ -50,4 +58,4 @@ def self.datacenters(client = nil, force_reload = false)
5058
@@data_centers
5159
end
5260
end
53-
end
61+
end

lib/softlayer/ProductPackage.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ class ProductPackage < ModelBase
3838
include ::SoftLayer::DynamicAttribute
3939

4040
##
41+
# :attr_reader:
4142
# A friendly, readable name for the package
4243
sl_attr :name
4344

4445
##
46+
# :attr_reader: available_locations
4547
# The list of locations where this product package is available.
4648
sl_attr :available_locations, 'availableLocations'
4749

0 commit comments

Comments
 (0)