Method: Particle::Token#initialize
- Defined in:
- lib/particle/token.rb
#initialize(client, attributes) ⇒ Token
Returns a new instance of Token.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/particle/token.rb', line 5 def initialize(client, attributes) @client = client @attributes = if attributes.is_a? String { token: attributes } else # Consider attributes loaded when passed in through constructor @loaded = true attributes end end |