Class: Github::ReposResponseWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/github/repos_response_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = [], token) ⇒ ReposResponseWrapper

Returns a new instance of ReposResponseWrapper.



4
5
6
7
8
9
# File 'lib/github/repos_response_wrapper.rb', line 4

def initialize(response=[], token)
	@response = []
	response.each do |repo_info|
		@response << Github::Repo.new(repo_info, token)
	end
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/github/repos_response_wrapper.rb', line 3

def response
  @response
end

Instance Method Details

#countObject



11
12
13
# File 'lib/github/repos_response_wrapper.rb', line 11

def count
	@response.count
end