Class: Tvteka::Session
- Inherits:
-
Object
- Object
- Tvteka::Session
- Defined in:
- lib/tvteka/session.rb
Instance Attribute Summary collapse
-
#authorized ⇒ Object
Returns the value of attribute authorized.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#device_id ⇒ Object
Returns the value of attribute device_id.
-
#device_type_id ⇒ Object
Returns the value of attribute device_type_id.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#stb_active ⇒ Object
Returns the value of attribute stb_active.
-
#subscription_active ⇒ Object
Returns the value of attribute subscription_active.
-
#token ⇒ Object
Returns the value of attribute token.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_timezone ⇒ Object
Returns the value of attribute user_timezone.
-
#user_tz_offset ⇒ Object
Returns the value of attribute user_tz_offset.
Instance Method Summary collapse
- #authorized? ⇒ Boolean
-
#initialize(params = {}) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(params = {}) ⇒ Session
Returns a new instance of Session.
7 8 9 10 11 |
# File 'lib/tvteka/session.rb', line 7 def initialize(params = {}) params.each do |k, v| self.send("#{k}=", v) end end |
Instance Attribute Details
#authorized ⇒ Object
Returns the value of attribute authorized.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def end |
#created_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def created_at @created_at end |
#device_id ⇒ Object
Returns the value of attribute device_id.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def device_id @device_id end |
#device_type_id ⇒ Object
Returns the value of attribute device_type_id.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def device_type_id @device_type_id end |
#display_name ⇒ Object
Returns the value of attribute display_name.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def display_name @display_name end |
#stb_active ⇒ Object
Returns the value of attribute stb_active.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def stb_active @stb_active end |
#subscription_active ⇒ Object
Returns the value of attribute subscription_active.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def subscription_active @subscription_active end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def token @token end |
#user_id ⇒ Object
Returns the value of attribute user_id.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def user_id @user_id end |
#user_timezone ⇒ Object
Returns the value of attribute user_timezone.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def user_timezone @user_timezone end |
#user_tz_offset ⇒ Object
Returns the value of attribute user_tz_offset.
5 6 7 |
# File 'lib/tvteka/session.rb', line 5 def user_tz_offset @user_tz_offset end |
Instance Method Details
#authorized? ⇒ Boolean
13 14 15 |
# File 'lib/tvteka/session.rb', line 13 def end |