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.
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 73 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.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def commit @commit end |
#git ⇒ Object
Returns the value of attribute git.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def git @git end |
#local ⇒ Object
Returns the value of attribute local.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def local @local end |
#name ⇒ Object
Returns the value of attribute name.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def path @path end |
#submodule ⇒ Object
Returns the value of attribute submodule.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def submodule @submodule end |
#version ⇒ Object
Returns the value of attribute version.
71 72 73 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 71 def version @version end |
Instance Method Details
#to_hash ⇒ Object
84 85 86 87 88 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 84 def to_hash instance_variables.map do |var| [var[1..-1].to_sym, instance_variable_get(var)] end.to_h end |