Sha256: c6fc275e05cfae4da65840e4bb82b7b498f04633b0a0285933d37bbce1c15694

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
tops_connect-0.6.3 lib/tops_connect/properties.rb
tops_connect-0.6.2 lib/tops_connect/properties.rb
tops_connect-0.6.1 lib/tops_connect/properties.rb
tops_connect-0.6.0 lib/tops_connect/properties.rb
tops_connect-0.5.0 lib/tops_connect/properties.rb