class GoogleCells::CellSelector
Attributes
max_col[RW]
max_row[RW]
min_col[RW]
min_row[RW]
worksheet[RW]
Public Class Methods
new(ws)
click to toggle source
# File lib/google_cells/cell_selector.rb, line 9 def initialize(ws) @worksheet = ws @min_row = 1 @max_row = worksheet.row_count @min_col = 1 @max_col = worksheet.col_count end
Public Instance Methods
parse_from_entry(entry)
click to toggle source
# File lib/google_cells/cell_selector/row_selector.rb, line 60 def parse_from_entry(entry) gscell = entry.css("gs|cell")[0] { id: entry.css("id").text, title: entry.css("title").text, value: gscell.inner_text, row: gscell["row"].to_i, col: gscell["col"].to_i, edit_url: entry.css("link[rel='edit']")[0]["href"], input_value: gscell["inputValue"], numeric_value: gscell["numericValue"], worksheet: self.worksheet } end