Class: MLS::Region
Defined Under Namespace
Classes: Parser
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Methods inherited from Resource
#==, #create!, inherited, #initialize, #new_record?, #persisted?, #properties, #properties_excluded_from_comparison, #properties_for_comparison, #save, #save!, #set_default_values, #to_hash, #to_key, #update!, #update_attributes
Constructor Details
This class inherits a constructor from MLS::Resource
Class Method Details
.find(id) ⇒ Object
21 22 23 24 |
# File 'lib/mls/models/region.rb', line 21 def find(id) response = MLS.get("/regions/#{id}") MLS::Region::Parser.parse(response.body) end |