Class: DbBackups::Container

Inherits:
Object
  • Object
show all
Includes:
View
Defined in:
lib/db_backups/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from View

#to_s

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

#appObject (readonly)

Returns the value of attribute app.



9
10
11
# File 'lib/db_backups/container.rb', line 9

def app
  @app
end

#environmentObject (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