Class: Migrant::Box

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/migrant/boxes.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/migrant/boxes.rb', line 7

def name
  @name
end

#providerObject

Returns the value of attribute provider.



5
6
7
# File 'lib/migrant/boxes.rb', line 5

def provider
  @provider
end