Class: TheCity::Checkin

Inherits:
ApiObject show all
Defined in:
lib/api/checkin.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

#initialize(json_data = nil) ⇒ Checkin

Constructor.

Parameters:

  • json_data (optional) (defaults to: nil)

    JSON data of the Checkin.



28
29
30
31
# File 'lib/api/checkin.rb', line 28

def initialize(json_data = nil)
  #@writer_object = CheckinWriter
  initialize_from_json_object(json_data) unless json_data.nil?
end