Class: Strobe::User
- Inherits:
-
Object
- Object
- Strobe::User
- Defined in:
- lib/strobe/user.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(json) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(json) ⇒ User
Returns a new instance of User.
5 6 7 |
# File 'lib/strobe/user.rb', line 5 def initialize(json) @token = json["authentication_token"] end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/strobe/user.rb', line 3 def token @token end |