Class: MfCloud::Invoice::Configure

Inherits:
Object
  • Object
show all
Defined in:
lib/mf_cloud/invoice/configure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configure

Returns a new instance of Configure.



7
8
9
10
11
12
# File 'lib/mf_cloud/invoice/configure.rb', line 7

def initialize(options = {})
  @client_id     = options[:client_id]
  @client_secret = options[:client_secret]
  @access_token  = options[:access_token]
  @api_version   = :v1
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



4
5
6
# File 'lib/mf_cloud/invoice/configure.rb', line 4

def access_token
  @access_token
end

#api_versionObject (readonly)

Returns the value of attribute api_version.



5
6
7
# File 'lib/mf_cloud/invoice/configure.rb', line 5

def api_version
  @api_version
end

#client_idObject

Returns the value of attribute client_id.



4
5
6
# File 'lib/mf_cloud/invoice/configure.rb', line 4

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



4
5
6
# File 'lib/mf_cloud/invoice/configure.rb', line 4

def client_secret
  @client_secret
end