Class: EpoOps::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



35
36
37
38
39
40
41
42
43
44
# File 'lib/epo_ops.rb', line 35

def initialize
  @consumer_key = ''
  @consumer_secret = ''
  @token_store = EpoOps::TokenStore.new
  @authentication = :plain

  OAuth2::Response.register_parser(:xml, ['application/xml']) do |body|
    MultiXml.parse(body)
  end
end

Instance Attribute Details

#authenticationObject

Returns the value of attribute authentication.



33
34
35
# File 'lib/epo_ops.rb', line 33

def authentication
  @authentication
end

#consumer_keyObject

Returns the value of attribute consumer_key.



33
34
35
# File 'lib/epo_ops.rb', line 33

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



33
34
35
# File 'lib/epo_ops.rb', line 33

def consumer_secret
  @consumer_secret
end

#token_storeObject

Returns the value of attribute token_store.



33
34
35
# File 'lib/epo_ops.rb', line 33

def token_store
  @token_store
end