Class: ApontadorOauth2::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/apontador_oauth2/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.



9
10
11
12
13
14
15
# File 'lib/apontador_oauth2/client.rb', line 9

def initialize(options)
  @options = {:grant_type => "client_credentials",
              :username   => "",
              :password   => "",
  }.merge!(options)
  request
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/apontador_oauth2/client.rb', line 8

def options
  @options
end

#tokenObject

Returns the value of attribute token.



8
9
10
# File 'lib/apontador_oauth2/client.rb', line 8

def token
  @token
end