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



50
51
52
53
54
55
56
57
58
59
# File 'lib/epo_ops.rb', line 50

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.



48
49
50
# File 'lib/epo_ops.rb', line 48

def authentication
  @authentication
end

#consumer_keyObject

Returns the value of attribute consumer_key.



48
49
50
# File 'lib/epo_ops.rb', line 48

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



48
49
50
# File 'lib/epo_ops.rb', line 48

def consumer_secret
  @consumer_secret
end

#token_storeObject

Returns the value of attribute token_store.



48
49
50
# File 'lib/epo_ops.rb', line 48

def token_store
  @token_store
end