Method: Github::API#arguments

Defined in:
lib/github_api/api.rb

#arguments(args = (not_set = true), options = {}, &block) ⇒ Object

Acts as setter and getter for api requests arguments parsing.

Returns Arguments instance.



92
93
94
95
96
97
98
# File 'lib/github_api/api.rb', line 92

def arguments(args=(not_set = true), options={}, &block)
  if not_set
    @arguments
  else
    @arguments = Arguments.new(self, options).parse(*args, &block)
  end
end