Class: Kettle::Family::Member

Inherits:
Struct
  • Object
show all
Defined in:
lib/kettle/family/member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dependenciesObject

Returns the value of attribute dependencies

Returns:

  • (Object)

    the current value of dependencies



5
6
7
# File 'lib/kettle/family/member.rb', line 5

def dependencies
  @dependencies
end

#gemspec_pathObject

Returns the value of attribute gemspec_path

Returns:

  • (Object)

    the current value of gemspec_path



5
6
7
# File 'lib/kettle/family/member.rb', line 5

def gemspec_path
  @gemspec_path
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/kettle/family/member.rb', line 5

def name
  @name
end

#rootObject

Returns the value of attribute root

Returns:

  • (Object)

    the current value of root



5
6
7
# File 'lib/kettle/family/member.rb', line 5

def root
  @root
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



5
6
7
# File 'lib/kettle/family/member.rb', line 5

def version
  @version
end

#version_fileObject

Returns the value of attribute version_file

Returns:

  • (Object)

    the current value of version_file



5
6
7
# File 'lib/kettle/family/member.rb', line 5

def version_file
  @version_file
end

Instance Method Details

#to_hObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/kettle/family/member.rb', line 13

def to_h
  {
    "name" => name,
    "root" => root,
    "gemspec_path" => gemspec_path,
    "version_file" => version_file,
    "version" => version,
    "dependencies" => dependencies
  }
end