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.



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

#branchObject

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

#commitObject

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

#gitObject

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

#localObject

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

#nameObject

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

#pathObject

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

#submoduleObject

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

#versionObject

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_hashObject



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