Class: Scenic::Adapters::Sqlite::Views

Inherits:
Object
  • Object
show all
Defined in:
lib/scenic/adapters/sqlite/views.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Views

Returns a new instance of Views.



5
6
7
# File 'lib/scenic/adapters/sqlite/views.rb', line 5

def initialize(connection)
  @connection = connection
end

Instance Method Details

#allObject



9
10
11
# File 'lib/scenic/adapters/sqlite/views.rb', line 9

def all
  views_from_sqlite.map(&method(:to_scenic_view))
end