Sha256: f500ca9fee5cd116d10f376ffec7bc2b0afb5a44721aba47faed63f744ea40d3
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true # Copyright (c) 2019 Valencia Management Group # All rights reserved. module TopsConnect module Properties # Method: GET # Endpoint: Property_GetList # Returns: Array<TopsConnect::Property> def properties get('/property').map do |property_data| TopsConnect::Property.new property_data end end # Method: GET # Endpoint: Property_Get # Returns: TopsConnect::Property def property(property_key) TopsConnect::Property.new get("/property/#{property_key}") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tops_connect-0.7.2 | lib/tops_connect/properties.rb |
tops_connect-0.7.1 | lib/tops_connect/properties.rb |
tops_connect-0.7.0 | lib/tops_connect/properties.rb |