Class: Retsly::ListingMap
- Inherits:
-
Object
- Object
- Retsly::ListingMap
- Defined in:
- lib/retsly/listing_map.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(client:) ⇒ ListingMap
constructor
A new instance of ListingMap.
Constructor Details
#initialize(client:) ⇒ ListingMap
Returns a new instance of ListingMap.
5 6 7 8 |
# File 'lib/retsly/listing_map.rb', line 5 def initialize(client:) @client = client raise 'Must Supply Vendor' unless @client.vendor end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/retsly/listing_map.rb', line 3 def client @client end |
Instance Method Details
#all ⇒ Object
10 11 12 |
# File 'lib/retsly/listing_map.rb', line 10 def all find_all(path: "#{@client.vendor}/listings/maps") end |