gimite / google-spreadsheet-ruby

Ruby library to read/write Google Spreadsheet
Other
306 stars 52 forks source link

Add find/create APIs #35

Closed hotchpotch closed 12 years ago

hotchpotch commented 12 years ago

I hope that not found spreadsheet or wheetsheet, return create/add new spreadsheet/worksheet.

I implemented those APIs.

gimite commented 12 years ago

Thanks for the patch. Pulled Session#spreadsheet_by_title at: https://github.com/gimite/google-spreadsheet-ruby/commit/4218969aa734f971d2745f2d60dc4da9dd57841b

For others, I think

session.spreadsheet_by_title("hoge") || session.create_spreadsheet("hoge")

is already as simple as:

session.spreadsheet_by_title_or_create("hoge")

So I decided not to add them.

hotchpotch commented 12 years ago

Thank you for merge.

OK. I see.

Thanks.