Class: SparkApi::Models::OpenHouse
- Extended by:
- Subresource
- Defined in:
- lib/spark_api/models/open_house.rb
Constant Summary
Constants included from Paginate
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ OpenHouse
constructor
A new instance of OpenHouse.
Methods included from Subresource
build_subclass, find_by_id, find_by_listing_key, parse_date_start_and_end_times
Methods inherited from Base
#connection, connection, count, element_name, element_name=, first, get, #id, #load, #method_missing, #parse_id, path, #path, #persisted?, prefix, prefix=, #resource_pluralized, #resource_uri, #respond_to?, #to_param, #to_partial_path
Methods included from Paginate
#collect, #paginate, #per_page
Methods included from Dirty
#changed, #changed?, #changed_attributes, #changes, #dirty_attributes, #previous_changes
Constructor Details
#initialize(attributes = {}) ⇒ OpenHouse
Returns a new instance of OpenHouse.
11 12 13 14 15 16 17 |
# File 'lib/spark_api/models/open_house.rb', line 11 def initialize(attributes={}) self.class.parse_date_start_and_end_times attributes if attributes["Comments"].nil? attributes["Comments"] = "" end super(attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SparkApi::Models::Base