Sha256: 4fa531aedff6f9a5efd79b80efd67f0ef58d19c192a4916d7075d89a75737c83
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module TopsConnect module Owners # Method: GET # Endpoint: Owner_Get def owner(owner_id) TopsConnect::Owner.new owner_id end # Method: GET # Endpoint: Owner_GetList def owners(property_id = nil) parameters = {} parameters['PropertyKey'] = property_id.to_i if property_id get('/owner', parameters).map do |owner| TopsConnect::Owner.new owner['OwnerKey'], owner end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tops_connect-0.1.4 | lib/tops_connect/owners.rb |
tops_connect-0.1.3 | lib/tops_connect/owners.rb |