Class: DbBackups::Container
- Inherits:
-
Object
- Object
- DbBackups::Container
- Includes:
- View
- Defined in:
- lib/db_backups/container.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Instance Method Summary collapse
- #[](index) ⇒ Object
-
#initialize(app, environment) ⇒ Container
constructor
A new instance of Container.
Methods included from View
Constructor Details
#initialize(app, environment) ⇒ Container
Returns a new instance of Container.
11 12 13 14 |
# File 'lib/db_backups/container.rb', line 11 def initialize(app, environment) @app = app @environment = environment end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
9 10 11 |
# File 'lib/db_backups/container.rb', line 9 def app @app end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
9 10 11 |
# File 'lib/db_backups/container.rb', line 9 def environment @environment end |
Instance Method Details
#[](index) ⇒ Object
16 17 18 |
# File 'lib/db_backups/container.rb', line 16 def [](index) files[index] end |