Class: ExchangerateHost::Configurations
- Inherits:
-
Object
- Object
- ExchangerateHost::Configurations
- Defined in:
- lib/exchangerate_host/configurations.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#base ⇒ Object
Returns the value of attribute base.
-
#date ⇒ Object
Returns the value of attribute date.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#format ⇒ Object
Returns the value of attribute format.
-
#from ⇒ Object
Returns the value of attribute from.
-
#places ⇒ Object
Returns the value of attribute places.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#symbols ⇒ Object
Returns the value of attribute symbols.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize ⇒ Configurations
constructor
A new instance of Configurations.
- #to_options_hash ⇒ Object
Constructor Details
#initialize ⇒ Configurations
Returns a new instance of Configurations.
5 6 7 8 |
# File 'lib/exchangerate_host/configurations.rb', line 5 def initialize # Default value can be set here. # @places = 2 end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def amount @amount end |
#base ⇒ Object
Returns the value of attribute base.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def base @base end |
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def date @date end |
#end_date ⇒ Object
Returns the value of attribute end_date.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def end_date @end_date end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def format @format end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def from @from end |
#places ⇒ Object
Returns the value of attribute places.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def places @places end |
#start_date ⇒ Object
Returns the value of attribute start_date.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def start_date @start_date end |
#symbols ⇒ Object
Returns the value of attribute symbols.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def symbols @symbols end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/exchangerate_host/configurations.rb', line 3 def to @to end |
Instance Method Details
#to_options_hash ⇒ Object
10 11 12 13 14 |
# File 'lib/exchangerate_host/configurations.rb', line 10 def self.instance_variables.map do |var| [var[1..-1].to_sym, self.instance_variable_get(var)] end.to_h end |