Class: Scrobbler::Session
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#subscriber ⇒ Object
readonly
Returns the value of attribute subscriber.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Session
constructor
A new instance of Session.
Methods inherited from Base
api_key=, connection, get, maybe_streamable_attribute, maybe_streamable_node, post_request, request, sanitize, secret=
Constructor Details
#initialize(data = {}) ⇒ Session
Returns a new instance of Session.
5 6 7 |
# File 'lib/scrobbler/session.rb', line 5 def initialize(data={}) populate_data(data) end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/scrobbler/session.rb', line 3 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/scrobbler/session.rb', line 3 def name @name end |
#subscriber ⇒ Object (readonly)
Returns the value of attribute subscriber.
3 4 5 |
# File 'lib/scrobbler/session.rb', line 3 def subscriber @subscriber end |