Class: Bootprint::Diff::Change

Inherits:
Struct
  • Object
show all
Defined in:
lib/bootprint/diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#localObject

Returns the value of attribute local

Returns:

  • (Object)

    the current value of local



5
6
7
# File 'lib/bootprint/diff.rb', line 5

def local
  @local
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/bootprint/diff.rb', line 5

def path
  @path
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



5
6
7
# File 'lib/bootprint/diff.rb', line 5

def target
  @target
end

Instance Method Details

#to_hObject



6
7
8
# File 'lib/bootprint/diff.rb', line 6

def to_h
  { "path" => path, "local" => local, "target" => target }
end