Skip to content

Documentation, examples, or similar #4

Description

@Midnighter

The documentation on this gem is very slim. How can I actually use this? I can successfully access my Google spreadsheet using google_drive but how do I get it to work with roo-google?

The following code creates below error.

require 'roo-google'

spread = Roo::Spreadsheet.open('uuid', extension: :google)

spread.sheets
set access token
/var/lib/gems/2.3.0/gems/roo-google-1.0.0/lib/roo/google.rb:26:in `worksheets': undefined method `spreadsheet_by_key' for nil:NilClass (NoMethodError)
        from /var/lib/gems/2.3.0/gems/roo-google-1.0.0/lib/roo/google.rb:30:in `sheets'
        from events.seeds.rb:5:in `<main>'

Do I need to create a session first using google_drive? Please advise.

I should probably add versions:

ruby 2.3.1p112 (2016-04-26)
roo-google-1.0.0
roo-2.4.0
google_drive-1.0.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions