class AteTracks::Structures::Response

Attributes

api_version[RW]
content[RW]
errors[RW]
logged_in[RW]
notices[RW]
status[RW]

Public Class Methods

new(data, type) click to toggle source
# File lib/atetracks/structures.rb, line 16
def initialize(data, type)
  class_type = Structures.const_get(type)
  if class_type
    @content = class_type.new(data[Helpers.underscore(type)])
    @status = data['status']
    @errors = data['errors']
    @notices = data['notices']
    @logged_in = data['logged_in']
    @api_version = data['api_version']
  end
end