Class: CocoapodsSoulComponentPlugin::Soul_Component
- Inherits:
-
Object
- Object
- CocoapodsSoulComponentPlugin::Soul_Component
- Defined in:
- lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#git ⇒ Object
Returns the value of attribute git.
-
#local ⇒ Object
Returns the value of attribute local.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#submodule ⇒ Object
Returns the value of attribute submodule.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name, local, submodule, version, git, branch, path, commit) ⇒ Soul_Component
constructor
A new instance of Soul_Component.
- #to_hash ⇒ Object
Constructor Details
#initialize(name, local, submodule, version, git, branch, path, commit) ⇒ Soul_Component
Returns a new instance of Soul_Component.
119 120 121 122 123 124 125 126 127 128 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 119 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
#branch ⇒ Object
Returns the value of attribute branch.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def commit @commit end |
#git ⇒ Object
Returns the value of attribute git.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def git @git end |
#local ⇒ Object
Returns the value of attribute local.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def local @local end |
#name ⇒ Object
Returns the value of attribute name.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def path @path end |
#submodule ⇒ Object
Returns the value of attribute submodule.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def submodule @submodule end |
#version ⇒ Object
Returns the value of attribute version.
117 118 119 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 117 def version @version end |
Instance Method Details
#to_hash ⇒ Object
130 131 132 133 134 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 130 def to_hash instance_variables.map do |var| [var[1..-1].to_sym, instance_variable_get(var)] end.to_h end |