lib/mls.rb in mls-0.2.35 vs lib/mls.rb in mls-0.2.36
- old
+ new
@@ -22,11 +22,11 @@
include Singleton
API_VERSION = '0.1.0'
attr_reader :url, :user_agent
- attr_writer :asset_host, :listing_amenities, :address_amenities
+ attr_writer :asset_host, :image_host, :listing_amenities, :address_amenities
attr_accessor :api_key, :auth_key, :logger
# Sets the API Token and Host of the MLS Server
#
# #!ruby
@@ -55,9 +55,13 @@
# provides the asset host, if asset_host is set then it is returned,
# otherwise it queries the MLS for this configuration.
def asset_host # TODO: testme
@asset_host ||= get('/asset_host').body
+ end
+
+ def image_host # TODO: testme
+ @asset_host ||= get('/image_host').body
end
def listing_amenities
@listing_amenities ||= Yajl::Parser.new(:symbolize_keys => true)
.parse(MLS.get('/listings/amenities').body)