Class: Fifthgear::Configuration
- Inherits:
-
Object
- Object
- Fifthgear::Configuration
- Defined in:
- lib/fifthgear/configuration.rb
Instance Attribute Summary collapse
-
#api_root ⇒ Object
Returns the value of attribute api_root.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#company_id ⇒ Object
Returns the value of attribute company_id.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#password ⇒ Object
Returns the value of attribute password.
-
#raise_errors ⇒ Object
Returns the value of attribute raise_errors.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fifthgear/configuration.rb', line 9 def initialize defaults = load_defaults @api_root = defaults[:api_root] @api_version = defaults[:api_version] @content_type = defaults[:content_type] @raise_errors = defaults[:raise_errors] @timeout = defaults[:timeout] @open_timeout = defaults[:open_timeout] @debug = false end |
Instance Attribute Details
#api_root ⇒ Object
Returns the value of attribute api_root.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def api_root @api_root end |
#api_version ⇒ Object
Returns the value of attribute api_version.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def api_version @api_version end |
#company_id ⇒ Object
Returns the value of attribute company_id.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def company_id @company_id end |
#content_type ⇒ Object
Returns the value of attribute content_type.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def content_type @content_type end |
#debug ⇒ Object
Returns the value of attribute debug.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def debug @debug end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def open_timeout @open_timeout end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def password @password end |
#raise_errors ⇒ Object
Returns the value of attribute raise_errors.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def raise_errors @raise_errors end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def timeout @timeout end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/fifthgear/configuration.rb', line 5 def username @username end |