Class: Bnb::Rate

Inherits:
Object
  • Object
show all
Defined in:
lib/bnb/rate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code.



2
3
4
# File 'lib/bnb/rate.rb', line 2

def code
  @code
end

#extra_infoObject

Returns the value of attribute extra_info.



2
3
4
# File 'lib/bnb/rate.rb', line 2

def extra_info
  @extra_info
end

#f_starObject

Returns the value of attribute f_star.



2
3
4
# File 'lib/bnb/rate.rb', line 2

def f_star
  @f_star
end

#goldObject

Returns the value of attribute gold.



2
3
4
# File 'lib/bnb/rate.rb', line 2

def gold
  @gold
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/bnb/rate.rb', line 2

def name
  @name
end

#rateObject

Returns the value of attribute rate.



2
3
4
# File 'lib/bnb/rate.rb', line 2

def rate
  @rate
end

#ratioObject

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