Class: TheCity::Church

Inherits:
ApiObject show all
Defined in:
lib/api/church.rb

Instance Attribute Summary

Attributes inherited from ApiObject

#error_messages, #marked_for_destruction

Instance Method Summary collapse

Methods inherited from ApiObject

__tc_attributes, #delete, #initialize_from_json_object, #is_deleted?, #save, #set_attributes, tc_attr_accessor, #to_attributes

Constructor Details

#initializeChurch

Constructor.



9
10
11
12
13
# File 'lib/api/church.rb', line 9

def initialize
  reader = TheCity::ChurchReader.new 
  json_data = reader.load_feed
  initialize_from_json_object(json_data)
end