Module: NetProspex::Configuration
- Included in:
- NetProspex
- Defined in:
- lib/netprospex/configuration.rb
Instance Attribute Summary collapse
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
3 4 5 |
# File 'lib/netprospex/configuration.rb', line 3 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
3 4 5 |
# File 'lib/netprospex/configuration.rb', line 3 def consumer_secret @consumer_secret end |
#scheme ⇒ Object
Returns the value of attribute scheme.
3 4 5 |
# File 'lib/netprospex/configuration.rb', line 3 def scheme @scheme end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/netprospex/configuration.rb', line 4 def version @version end |
Class Method Details
.extended(base) ⇒ Object
14 15 16 |
# File 'lib/netprospex/configuration.rb', line 14 def self.extended(base) base.reset end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
24 25 26 |
# File 'lib/netprospex/configuration.rb', line 24 def configure yield self end |
#reset ⇒ Object
18 19 20 21 22 |
# File 'lib/netprospex/configuration.rb', line 18 def reset self.consumer_key = nil self.consumer_secret = nil self.version = "1.1" end |