Class: Octokit::RepoArguments
- Defined in:
- lib/octokit/repo_arguments.rb
Overview
Class to extract options from Ruby arguments for Repository-related methods
Instance Attribute Summary collapse
-
#repo ⇒ Object
readonly
!@attribute [r] repo @return [Repository].
Attributes inherited from Arguments
Instance Method Summary collapse
-
#initialize(args) ⇒ RepoArguments
constructor
A new instance of RepoArguments.
Constructor Details
#initialize(args) ⇒ RepoArguments
Returns a new instance of RepoArguments.
11 12 13 14 15 16 |
# File 'lib/octokit/repo_arguments.rb', line 11 def initialize(args) arguments = super @repo = arguments.shift arguments end |
Instance Attribute Details
#repo ⇒ Object (readonly)
!@attribute [r] repo
@return [Repository]
9 10 11 |
# File 'lib/octokit/repo_arguments.rb', line 9 def repo @repo end |