Class: RubyLokaliseApi::OAuth2::Refresh

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_lokalise_api/oauth2/refresh.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_params) ⇒ Refresh

Returns a new instance of Refresh.



8
9
10
11
12
13
# File 'lib/ruby_lokalise_api/oauth2/refresh.rb', line 8

def initialize(raw_params)
  @access_token = raw_params['access_token']
  @expires_in = raw_params['expires_in']
  @scope = raw_params['scope']
  @token_type = raw_params['token_type']
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



6
7
8
# File 'lib/ruby_lokalise_api/oauth2/refresh.rb', line 6

def access_token
  @access_token
end

#expires_inObject (readonly)

Returns the value of attribute expires_in.



6
7
8
# File 'lib/ruby_lokalise_api/oauth2/refresh.rb', line 6

def expires_in
  @expires_in
end

#scopeObject (readonly)

Returns the value of attribute scope.



6
7
8
# File 'lib/ruby_lokalise_api/oauth2/refresh.rb', line 6

def scope
  @scope
end

#token_typeObject (readonly)

Returns the value of attribute token_type.



6
7
8
# File 'lib/ruby_lokalise_api/oauth2/refresh.rb', line 6

def token_type
  @token_type
end