Module: TopsConnect::Properties
- Included in:
- Client
- Defined in:
- lib/tops_connect/properties.rb
Instance Method Summary collapse
-
#properties ⇒ Object
Method: GET Endpoint: Property_GetList Returns: Array<TopsConnect::Property>.
-
#property(property_key) ⇒ Object
Method: GET Endpoint: Property_Get Returns: TopsConnect::Property.
Instance Method Details
#properties ⇒ Object
Method: GET Endpoint: Property_GetList Returns: Array<TopsConnect::Property>
11 12 13 14 15 |
# File 'lib/tops_connect/properties.rb', line 11 def properties get('/property').map do |property_data| TopsConnect::Property.new property_data end end |
#property(property_key) ⇒ Object
Method: GET Endpoint: Property_Get Returns: TopsConnect::Property
20 21 22 |
# File 'lib/tops_connect/properties.rb', line 20 def property(property_key) TopsConnect::Property.new get("/property/#{property_key}") end |