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.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Sheet
constructor
A new instance of Sheet.
Constructor Details
#initialize(options = {}) ⇒ Sheet
83 84 85 86 87 |
# File 'lib/gslide/models/spreadsheet.rb', line 83 def initialize( = {}) @id = [:properties][:sheet_id] @title = [:properties][:title] @charts = [:charts].collect { |h| Chart.new(h) } if [:charts] end |
Instance Attribute Details
#charts ⇒ Object (readonly)
Returns the value of attribute charts.
81 82 83 |
# File 'lib/gslide/models/spreadsheet.rb', line 81 def charts @charts end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
81 82 83 |
# File 'lib/gslide/models/spreadsheet.rb', line 81 def id @id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
81 82 83 |
# File 'lib/gslide/models/spreadsheet.rb', line 81 def title @title end |