lib/mls.rb in mls-0.1.1 vs lib/mls.rb in mls-0.1.2
- old
+ new
@@ -30,17 +30,17 @@
self.site = MLS.site
self.prefix = '/api/'
self.user = nil
self.password = nil
- def create
- json = JSON.generate({self.class.element_name => JSON.parse(encode)})
- connection.post(collection_path, json, self.class.headers).tap do |response|
- self.id = id_from_response(response)
- load_attributes_from_response(response)
- end
- end
+ # def create
+ # json = JSON.generate({self.class.element_name => JSON.parse(encode)})
+ # connection.post(collection_path, json, self.class.headers).tap do |response|
+ # self.id = id_from_response(response)
+ # load_attributes_from_response(response)
+ # end
+ # end
private
def self.instantiate_collection(collection, prefix_options = {})
collection[self.collection_name].collect! do |record|
@@ -51,8 +51,9 @@
end
end
require 'mls/use'
+require 'mls/user'
require 'mls/photo'
require 'mls/address'
require 'mls/listing'