Class: CocoapodsTools::Component

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

Overview

组件类

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, url, branch) ⇒ Component

Returns a new instance of Component.



9
10
11
12
13
# File 'lib/cocoapods-tools/command/git/component.rb', line 9

def initialize(name, url, branch)
  @component_name = name
  @component_url = url
  @component_branch = branch
end

Instance Attribute Details

#component_branchObject

Returns the value of attribute component_branch.



7
8
9
# File 'lib/cocoapods-tools/command/git/component.rb', line 7

def component_branch
  @component_branch
end

#component_nameObject

Returns the value of attribute component_name.



7
8
9
# File 'lib/cocoapods-tools/command/git/component.rb', line 7

def component_name
  @component_name
end

#component_urlObject

Returns the value of attribute component_url.



7
8
9
# File 'lib/cocoapods-tools/command/git/component.rb', line 7

def component_url
  @component_url
end