Class: Ambling::Stock::Settings::Charts::Chart::Graphs::Graph::Legend

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/stock.rb

Defined Under Namespace

Classes: DigitsAfterDecimal

Constant Summary collapse

VALUES =
[:date,:period,:date_comparing,:period_comparing,:comparing_only,:digits_after_decimal]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#comparing_onlyObject

defines how many numbers should be displayed after comma #



1099
1100
1101
# File 'lib/ambling/stock.rb', line 1099

def comparing_only
  @comparing_only
end

#dateObject

Returns the value of attribute date.



1082
1083
1084
# File 'lib/ambling/stock.rb', line 1082

def date
  @date
end

#date_comparingObject

Returns the value of attribute date_comparing.



1090
1091
1092
# File 'lib/ambling/stock.rb', line 1090

def date_comparing
  @date_comparing
end

#digits_after_decimalObject

number_format.digits_after_decimal.data

(Number) number of digits after decimal #



1103
1104
1105
# File 'lib/ambling/stock.rb', line 1103

def digits_after_decimal
  @digits_after_decimal
end

#periodObject

Returns the value of attribute period.



1086
1087
1088
# File 'lib/ambling/stock.rb', line 1086

def period
  @period
end

#period_comparingObject

false

(true / false) If you set this to true, this graph will not have legend

entry, only comparing graphs will. #


1095
1096
1097
# File 'lib/ambling/stock.rb', line 1095

def period_comparing
  @period_comparing
end