Class: EpoOps::Configuration
- Inherits:
-
Object
- Object
- EpoOps::Configuration
- Defined in:
- lib/epo_ops.rb
Instance Attribute Summary collapse
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#token_store ⇒ Object
Returns the value of attribute token_store.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#authentication ⇒ Object
Returns the value of attribute authentication.
33 34 35 |
# File 'lib/epo_ops.rb', line 33 def authentication @authentication end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
33 34 35 |
# File 'lib/epo_ops.rb', line 33 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
33 34 35 |
# File 'lib/epo_ops.rb', line 33 def consumer_secret @consumer_secret end |
#token_store ⇒ Object
Returns the value of attribute token_store.
33 34 35 |
# File 'lib/epo_ops.rb', line 33 def token_store @token_store end |