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

#authorsObject

Returns the value of attribute authors

Returns:

  • (Object)

    the current value of authors



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

def authors
  @authors
end

#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

#licensesObject

Returns the value of attribute licenses

Returns:

  • (Object)

    the current value of licenses



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

def licenses
  @licenses
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

#required_ruby_versionObject

Returns the value of attribute required_ruby_version

Returns:

  • (Object)

    the current value of required_ruby_version



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

def required_ruby_version
  @required_ruby_version
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



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/kettle/family/member.rb', line 16

def to_h
  {
    "name" => name,
    "root" => root,
    "gemspec_path" => gemspec_path,
    "version_file" => version_file,
    "version" => version,
    "dependencies" => dependencies,
    "required_ruby_version" => required_ruby_version,
    "licenses" => Array(licenses),
    "authors" => Array(authors)
  }
end