Class: Migrant::Box
- Inherits:
-
Object
- Object
- Migrant::Box
- Defined in:
- lib/migrant/boxes.rb
Overview
Represents a box managed by Migrant. We save this object in YAML format so that subsequent runs of Migrant can find them.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#provider ⇒ Object
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(box_provider = nil, box_id = nil, box_name = nil) ⇒ Box
constructor
A new instance of Box.
Constructor Details
#initialize(box_provider = nil, box_id = nil, box_name = nil) ⇒ Box
Returns a new instance of Box.
9 10 11 12 13 |
# File 'lib/migrant/boxes.rb', line 9 def initialize(box_provider=nil,box_id=nil,box_name=nil) @id = box_id @provider = box_provider @name = box_name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/migrant/boxes.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/migrant/boxes.rb', line 7 def name @name end |
#provider ⇒ Object
Returns the value of attribute provider.
5 6 7 |
# File 'lib/migrant/boxes.rb', line 5 def provider @provider end |