Class: VinQuery::Configuration
- Inherits:
-
Object
- Object
- VinQuery::Configuration
- Defined in:
- lib/vin_query/configuration.rb
Instance Attribute Summary collapse
-
#access_code ⇒ Object
Returns the value of attribute access_code.
-
#report_type ⇒ Object
Returns the value of attribute report_type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #merge_options(options = {}) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 |
# File 'lib/vin_query/configuration.rb', line 28 def initialize @report_type = ReportType::EXTENDED end |
Instance Attribute Details
#access_code ⇒ Object
Returns the value of attribute access_code.
26 27 28 |
# File 'lib/vin_query/configuration.rb', line 26 def access_code @access_code end |
#report_type ⇒ Object
Returns the value of attribute report_type.
26 27 28 |
# File 'lib/vin_query/configuration.rb', line 26 def report_type @report_type end |
#url ⇒ Object
Returns the value of attribute url.
26 27 28 |
# File 'lib/vin_query/configuration.rb', line 26 def url @url end |
Instance Method Details
#merge_options(options = {}) ⇒ Object
32 33 34 35 36 |
# File 'lib/vin_query/configuration.rb', line 32 def (={}) .each do |k, v| self.send("#{k}=", v) end end |