Class: BrasilfoneAPI::Configuration
- Inherits:
-
Object
- Object
- BrasilfoneAPI::Configuration
- Defined in:
- lib/brasilfone_api/configuration.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/brasilfone_api/configuration.rb', line 3 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/brasilfone_api/configuration.rb', line 3 def username @username end |
Class Method Details
.config ⇒ Object
11 12 13 |
# File 'lib/brasilfone_api/configuration.rb', line 11 def self.config @config || configure end |
.configure {|@config| ... } ⇒ Object
5 6 7 8 9 |
# File 'lib/brasilfone_api/configuration.rb', line 5 def self.configure @config ||= Configuration.new yield(@config) if block_given? @config end |
.reset ⇒ Object
15 16 17 18 19 |
# File 'lib/brasilfone_api/configuration.rb', line 15 def self.reset @config || configure config.username = nil config.password = nil end |