Class: Scenic::Adapters::Sqlite::Views
- Inherits:
-
Object
- Object
- Scenic::Adapters::Sqlite::Views
- Defined in:
- lib/scenic/adapters/sqlite/views.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(connection) ⇒ Views
constructor
A new instance of Views.
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
#all ⇒ Object
9 10 11 |
# File 'lib/scenic/adapters/sqlite/views.rb', line 9 def all views_from_sqlite.map(&method(:to_scenic_view)) end |