Method: GoogleSheets#sheet_color
- Defined in:
- lib/googlesheets.rb
#sheet_color(pick, color = nil) ⇒ Object
NOTE: ignores alpha
157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/googlesheets.rb', line 157 def sheet_color(pick, color=nil) # NOTE: ignores alpha reqs = [] reqs.push(update_sheet_properties: { properties: { sheet_id: sheet_id(pick), tab_color: hex2rgb(color), }, fields: 'tab_color', }) resp = api.batch_update_spreadsheet(@ssid, { requests: reqs }, {}) true end |