Class: WebmaniabrNfeRuby::Authenticate

Inherits:
Object
  • Object
show all
Defined in:
lib/webmaniabr_nfe_ruby/authenticate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Authenticate



6
7
8
9
10
11
# File 'lib/webmaniabr_nfe_ruby/authenticate.rb', line 6

def initialize(options = {})
  self.consumer_key        = options[:consumer_key]
  self.consumer_secret     = options[:consumer_secret]
  self.access_token        = options[:access_token]
  self.access_token_secret = options[:access_token_secret]
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



3
4
5
# File 'lib/webmaniabr_nfe_ruby/authenticate.rb', line 3

def access_token
  @access_token
end

#access_token_secretObject

Returns the value of attribute access_token_secret.



3
4
5
# File 'lib/webmaniabr_nfe_ruby/authenticate.rb', line 3

def access_token_secret
  @access_token_secret
end

#consumer_keyObject

Returns the value of attribute consumer_key.



3
4
5
# File 'lib/webmaniabr_nfe_ruby/authenticate.rb', line 3

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



3
4
5
# File 'lib/webmaniabr_nfe_ruby/authenticate.rb', line 3

def consumer_secret
  @consumer_secret
end