Class: HowIs::Fetcher::Results
- Inherits:
-
Struct
- Object
- Struct
- HowIs::Fetcher::Results
- Includes:
- Contracts::Core
- Defined in:
- lib/how_is/fetcher.rb
Overview
Standardized representation for fetcher results.
Implemented as a class instead of passing around a Hash so that it can be more easily referenced by Contracts.
Instance Attribute Summary collapse
-
#issues ⇒ Object
Returns the value of attribute issues.
-
#pulls ⇒ Object
Returns the value of attribute pulls.
-
#pulse ⇒ Object
Returns the value of attribute pulse.
-
#repository ⇒ Object
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize(repository, issues, pulls, pulse) ⇒ Results
constructor
A new instance of Results.
Constructor Details
#initialize(repository, issues, pulls, pulse) ⇒ Results
Returns a new instance of Results.
32 33 34 |
# File 'lib/how_is/fetcher.rb', line 32 def initialize(repository, issues, pulls, pulse) super(repository, issues, pulls, pulse) end |
Instance Attribute Details
#issues ⇒ Object
Returns the value of attribute issues
28 29 30 |
# File 'lib/how_is/fetcher.rb', line 28 def issues @issues end |
#pulls ⇒ Object
Returns the value of attribute pulls
28 29 30 |
# File 'lib/how_is/fetcher.rb', line 28 def pulls @pulls end |
#pulse ⇒ Object
Returns the value of attribute pulse
28 29 30 |
# File 'lib/how_is/fetcher.rb', line 28 def pulse @pulse end |
#repository ⇒ Object
Returns the value of attribute repository
28 29 30 |
# File 'lib/how_is/fetcher.rb', line 28 def repository @repository end |