Class: Bovespa::Stock
- Inherits:
-
Object
- Object
- Bovespa::Stock
- Defined in:
- lib/bovespa-prices.rb
Instance Attribute Summary collapse
-
#average_price ⇒ Object
Returns the value of attribute average_price.
-
#code ⇒ Object
Returns the value of attribute code.
-
#date ⇒ Object
Returns the value of attribute date.
-
#last_price ⇒ Object
Returns the value of attribute last_price.
-
#max_price ⇒ Object
Returns the value of attribute max_price.
-
#min_price ⇒ Object
Returns the value of attribute min_price.
-
#name ⇒ Object
Returns the value of attribute name.
-
#opening_price ⇒ Object
Returns the value of attribute opening_price.
-
#variation ⇒ Object
Returns the value of attribute variation.
Instance Method Summary collapse
Instance Attribute Details
#average_price ⇒ Object
Returns the value of attribute average_price.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def average_price @average_price end |
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def code @code end |
#date ⇒ Object
Returns the value of attribute date.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def date @date end |
#last_price ⇒ Object
Returns the value of attribute last_price.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def last_price @last_price end |
#max_price ⇒ Object
Returns the value of attribute max_price.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def max_price @max_price end |
#min_price ⇒ Object
Returns the value of attribute min_price.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def min_price @min_price end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def name @name end |
#opening_price ⇒ Object
Returns the value of attribute opening_price.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def opening_price @opening_price end |
#variation ⇒ Object
Returns the value of attribute variation.
8 9 10 |
# File 'lib/bovespa-prices.rb', line 8 def variation @variation end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/bovespa-prices.rb', line 10 def to_s "#{@code} - '#{@name}' #{@opening_price} #{@min_price} #{@max_price} #{@average_price} #{@last_price} #{@variation}" end |