Class: Pangea::Magma::Migration::ResourceMove

Inherits:
Struct
  • Object
show all
Defined in:
lib/pangea/magma/migration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



36
37
38
# File 'lib/pangea/magma/migration.rb', line 36

def address
  @address
end

#identityObject

Returns the value of attribute identity

Returns:

  • (Object)

    the current value of identity



36
37
38
# File 'lib/pangea/magma/migration.rb', line 36

def identity
  @identity
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



36
37
38
# File 'lib/pangea/magma/migration.rb', line 36

def kind
  @kind
end

#new_addressObject

Returns the value of attribute new_address

Returns:

  • (Object)

    the current value of new_address



36
37
38
# File 'lib/pangea/magma/migration.rb', line 36

def new_address
  @new_address
end

#new_address_patternObject

Returns the value of attribute new_address_pattern

Returns:

  • (Object)

    the current value of new_address_pattern



36
37
38
# File 'lib/pangea/magma/migration.rb', line 36

def new_address_pattern
  @new_address_pattern
end

Instance Method Details

#to_hObject



39
40
41
42
43
# File 'lib/pangea/magma/migration.rb', line 39

def to_h
  { kind: kind.to_s, address: address, new_address: new_address,
    new_address_pattern: new_address_pattern,
    identity: identity }.compact
end