Class: TheCity::MetricMeasurement
- Defined in:
- lib/api/metric_measurement.rb
Instance Attribute Summary
Attributes inherited from ApiObject
#error_messages, #marked_for_destruction
Instance Method Summary collapse
-
#initialize(json_data) ⇒ MetricMeasurement
constructor
Constructor.
-
#save ⇒ Object
Save this object.
Methods inherited from ApiObject
__tc_attributes, #delete, #initialize_from_json_object, #is_deleted?, #set_attributes, tc_attr_accessor, #to_attributes
Constructor Details
#initialize(json_data) ⇒ MetricMeasurement
Constructor.
13 14 15 |
# File 'lib/api/metric_measurement.rb', line 13 def initialize(json_data) initialize_from_json_object(json_data) end |
Instance Method Details
#save ⇒ Object
Save this object.
20 21 22 23 |
# File 'lib/api/metric_measurement.rb', line 20 def save writer = MetricMeasurementWriter.new(self.to_attributes) writer.save_feed end |