Permalink
Browse files

Array

  • Loading branch information...
1 parent 1f5b13a commit d3d51d5d0f1335fe5de6f0dbc684a398b6b60440 @waratuman waratuman committed Feb 1, 2013
Showing with 14 additions and 1 deletion.
  1. +1 −0 lib/mls.rb
  2. +1 −0 lib/mls/models/listing.rb
  3. +11 −0 lib/mls/properties/array.rb
  4. +1 −1 mls.gemspec
View
@@ -412,6 +412,7 @@ def self.parse(json) # TODO: testme
require 'mls/properties/datetime'
require 'mls/properties/string'
require 'mls/properties/hash'
+require 'mls/properties/array'
# Models
require 'mls/model'
@@ -18,6 +18,7 @@ class MLS::Listing < MLS::Resource
property :source_url, String
property :source_type, String, :serialize => :if_present
property :channel, String, :serialize => :if_present
+ property :photo_ids, Array, :serialize => :if_present
property :name, String
property :type, String, :default => 'lease'
@@ -0,0 +1,11 @@
+class MLS::Property::Array < MLS::Property
+
+ def load(value) # from_json
+ value
+ end
+
+ def dump(value)
+ value
+ end
+
+end
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.2.26'
+ s.version = '0.2.27'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"

0 comments on commit d3d51d5

Please sign in to comment.