Class: Gslide::Models::Sheet
Instance Attribute Summary collapse
-
#charts ⇒ Object
readonly
Returns the value of attribute charts.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Sheet
constructor
A new instance of Sheet.
Constructor Details
#initialize(options = {}) ⇒ Sheet
Returns a new instance of Sheet.
66 67 68 69 |
# File 'lib/gslide/models/spreadsheet.rb', line 66 def initialize( = {}) @id = [:properties][:sheet_id] @charts = [:charts].collect { |h| Chart.new(h) } if [:charts] end |
Instance Attribute Details
#charts ⇒ Object (readonly)
Returns the value of attribute charts.
64 65 66 |
# File 'lib/gslide/models/spreadsheet.rb', line 64 def charts @charts end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
64 65 66 |
# File 'lib/gslide/models/spreadsheet.rb', line 64 def id @id end |