lib/mls.rb in mls-0.5.10 vs lib/mls.rb in mls-0.5.11

- old
+ new

@@ -22,11 +22,11 @@ include Singleton API_VERSION = '0.1.0' attr_reader :url, :user_agent - attr_writer :asset_host, :image_host, :agent_profile, :listing_amenities, :address_amenities + attr_writer :asset_host, :image_host, :agent_profile attr_accessor :api_key, :auth_key, :logger # Sets the API Token and Host of the MLS Server # # #!ruby @@ -65,22 +65,12 @@ def raw_image_host @image_host ||= get('/image_host').body end - def listing_amenities - @listing_amenities ||= Yajl::Parser.new(:symbolize_keys => true) - .parse(MLS.get('/listings/amenities').body) - end - def agent_profile(id) @agent_profile = Yajl::Parser.new(:symbolize_keys => true) .parse(MLS.get("/agents/#{id}").body) - end - - def address_amenities - @address_amenities ||= Yajl::Parser.new(:symbolize_keys => true) - .parse(MLS.get('/addresses/amenities').body) end def headers # TODO: testme h = { 'Content-Type' => 'application/json',