Class: Github::ReposResponseWrapper
- Inherits:
-
Object
- Object
- Github::ReposResponseWrapper
- Defined in:
- lib/github/repos_response_wrapper.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #count ⇒ Object
-
#initialize(response = [], token) ⇒ ReposResponseWrapper
constructor
A new instance of ReposResponseWrapper.
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
#response ⇒ Object (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
#count ⇒ Object
11 12 13 |
# File 'lib/github/repos_response_wrapper.rb', line 11 def count @response.count end |