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>
8 9 10 11 12 |
# File 'lib/tops_connect/properties.rb', line 8 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
17 18 19 |
# File 'lib/tops_connect/properties.rb', line 17 def property(property_key) TopsConnect::Property.new get("/property/#{property_key}") end |