Class: CocoapodsSoulComponentPlugin::Soul_Component

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, local, submodule, version, git, branch, path, commit) ⇒ Soul_Component

Returns a new instance of Soul_Component.



72
73
74
75
76
77
78
79
80
81
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 72

def initialize(name, local, submodule, version, git, branch, path, commit)
  @name = name
  @local = local
  @submodule = submodule
  @version = version
  @git = git
  @branch = branch
  @path = path
  @commit = commit
end

Instance Attribute Details

#branchObject

Returns the value of attribute branch.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def branch
  @branch
end

#commitObject

Returns the value of attribute commit.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def commit
  @commit
end

#gitObject

Returns the value of attribute git.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def git
  @git
end

#localObject

Returns the value of attribute local.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def local
  @local
end

#nameObject

Returns the value of attribute name.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def name
  @name
end

#pathObject

Returns the value of attribute path.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def path
  @path
end

#submoduleObject

Returns the value of attribute submodule.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def submodule
  @submodule
end

#versionObject

Returns the value of attribute version.



70
71
72
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 70

def version
  @version
end

Instance Method Details

#to_hashObject



83
84
85
86
87
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 83

def to_hash
  instance_variables.map do |var|
    [var[1..-1].to_sym, instance_variable_get(var)]
  end.to_h
end