Sha256: 7e93f63f8b7d7e1f0f53bc477648da71c9bd7538caca375864f00ba332e7c541

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 Bytes

Contents

module GSheets
  module V4
    class SpreadSheet
      attr_accessor :id

      def initialize(session:, id:)
        @session = session
        @id = id
      end

      def sheets
        @session.get_sheets_from_spreadsheet(@id).map { |sheet|
          Sheet.new(sheet: sheet, spread_sheet: self)
        }
      end

      def session
        @session
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
g_sheets-0.3.3 lib/g_sheets/v4/spread_sheet.rb
g_sheets-0.3.2 lib/g_sheets/v4/spread_sheet.rb
g_sheets-0.3.1 lib/g_sheets/v4/spread_sheet.rb
g_sheets-0.3.0 lib/g_sheets/v4/spread_sheet.rb
g_sheets-0.2.0 lib/g_sheets/v4/spread_sheet.rb