Class: ShelbyArena::ShelbySession

Inherits:
ApiObject
  • Object
show all
Defined in:
lib/api/shelby_session.rb

Instance Attribute Summary

Attributes inherited from ApiObject

#error_messages, #marked_for_destruction

Instance Method Summary collapse

Methods inherited from ApiObject

#initialize_from_json_object

Constructor Details

#initialize(response_data) ⇒ ShelbySession

Constructor.



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

def initialize(response_data)  
  self.id = response_data['ApiSession']['SessionID']
  self.expires_at = response_data['ApiSession']['DateExpires']
end