Class: Gslide::Models::Sheet

Inherits:
Object
  • Object
show all
Defined in:
lib/gslide/models/spreadsheet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Sheet

Returns a new instance of Sheet.



83
84
85
86
87
# File 'lib/gslide/models/spreadsheet.rb', line 83

def initialize(options = {})
  @id = options[:properties][:sheet_id]
  @title = options[:properties][:title]
  @charts = options[:charts].collect { |h| Chart.new(h) } if options[:charts]
end

Instance Attribute Details

#chartsObject (readonly)

Returns the value of attribute charts.



81
82
83
# File 'lib/gslide/models/spreadsheet.rb', line 81

def charts
  @charts
end

#idObject (readonly)

Returns the value of attribute id.



81
82
83
# File 'lib/gslide/models/spreadsheet.rb', line 81

def id
  @id
end

#titleObject (readonly)

Returns the value of attribute title.



81
82
83
# File 'lib/gslide/models/spreadsheet.rb', line 81

def title
  @title
end