Class: TheCity::GroupExport
- Defined in:
- lib/api/group_export.rb
Instance Attribute Summary
Attributes inherited from ApiObject
#error_messages, #marked_for_destruction
Class Method Summary collapse
-
.load_by_id(group_export_id, options = {}) ⇒ Object
Loads the group export by the specified ID.
Instance Method Summary collapse
-
#initialize(json_data = nil) ⇒ GroupExport
constructor
Constructor.
Methods inherited from ApiObject
__tc_attributes, #delete, #initialize_from_json_object, #is_deleted?, #save, #set_attributes, tc_attr_accessor, #to_attributes
Constructor Details
#initialize(json_data = nil) ⇒ GroupExport
Constructor.
32 33 34 35 |
# File 'lib/api/group_export.rb', line 32 def initialize(json_data = nil) @writer_object = GroupExportWriter initialize_from_json_object(json_data) unless json_data.nil? end |
Class Method Details
.load_by_id(group_export_id, options = {}) ⇒ Object
Loads the group export by the specified ID.
Returns a new TheCity::GroupExport object.
21 22 23 24 25 26 |
# File 'lib/api/group_export.rb', line 21 def self.load_by_id(group_export_id, = {}) group_reader = GroupExportReader.new(group_export_id, ) self.new(group_reader.load_feed) rescue nil end |