Sha256: 4297e2c5a1af280a045f9918090b0ad0ee2805399524341dcaea782f4d59ff96
Contents?: true
Size: 721 Bytes
Versions: 5
Compression:
Stored size: 721 Bytes
Contents
class MLS::Brokerage < MLS::Resource attribute :id, Fixnum, :serialize => :if_present attribute :name, String, :serialize => :if_present attribute :admin_id, Fixnum, :serialize => :if_present attribute :slug, String, :serialize => false attribute :palette, Hash, :serialize => :if_present attribute :avatar_digest, String, :serialize => false class << self def find(id) response = MLS.get("/brokerages/#{id}") MLS::Brokerage::Parser.parse(response.body) end def all(options={}) response = MLS.get('/brokerages', options) MLS::Brokerage::Parser.parse_collection(response.body) end end end class MLS::Brokerage::Parser < MLS::Parser end
Version data entries
5 entries across 5 versions & 1 rubygems