Class: Octokit::RepoArguments

Inherits:
Arguments
  • Object
show all
Defined in:
lib/octokit/repo_arguments.rb

Overview

Class to extract options from Ruby arguments for Repository-related methods

Instance Attribute Summary collapse

Attributes inherited from Arguments

#options

Instance Method Summary collapse

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(args)
  @repo = arguments.shift

  arguments
end

Instance Attribute Details

#repoObject (readonly)

[email protected] [r] repo

@return [Repository]

9
10
11
# File 'lib/octokit/repo_arguments.rb', line 9

def repo
  @repo
end