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.
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
#branch ⇒ Object
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 |
#commit ⇒ Object
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 |
#git ⇒ Object
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 |
#local ⇒ Object
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 |
#name ⇒ Object
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 |
#path ⇒ Object
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 |
#submodule ⇒ Object
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 |
#version ⇒ Object
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_hash ⇒ Object
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 |