Class: Bnb::Rate
- Inherits:
-
Object
- Object
- Bnb::Rate
- Defined in:
- lib/bnb/rate.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#extra_info ⇒ Object
Returns the value of attribute extra_info.
-
#f_star ⇒ Object
Returns the value of attribute f_star.
-
#gold ⇒ Object
Returns the value of attribute gold.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rate ⇒ Object
Returns the value of attribute rate.
-
#ratio ⇒ Object
Returns the value of attribute ratio.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def code @code end |
#extra_info ⇒ Object
Returns the value of attribute extra_info.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def extra_info @extra_info end |
#f_star ⇒ Object
Returns the value of attribute f_star.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def f_star @f_star end |
#gold ⇒ Object
Returns the value of attribute gold.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def gold @gold end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def name @name end |
#rate ⇒ Object
Returns the value of attribute rate.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def rate @rate end |
#ratio ⇒ Object
Returns the value of attribute ratio.
2 3 4 |
# File 'lib/bnb/rate.rb', line 2 def ratio @ratio end |
Instance Method Details
#from_bnb(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/bnb/rate.rb', line 4 def from_bnb params @gold = params['GOLD'] @name = params['NAME_'] @code = params['CODE'] @ratio = params['RATIO'] @rate = params['RATE'] @extra_info = params['EXTRAINFO'] @f_star = params['F_STAR'] self end |