Class: HowIs::Fetcher::Results

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(repository, issues, pulls) ⇒ Results

Returns a new instance of Results.



18
19
20
# File 'lib/how_is/fetcher.rb', line 18

def initialize(repository, issues, pulls)
  super(repository, issues, pulls)
end

Instance Attribute Details

#issuesObject

Returns the value of attribute issues

Returns:

  • (Object)

    the current value of issues



14
15
16
# File 'lib/how_is/fetcher.rb', line 14

def issues
  @issues
end

#pullsObject

Returns the value of attribute pulls

Returns:

  • (Object)

    the current value of pulls



14
15
16
# File 'lib/how_is/fetcher.rb', line 14

def pulls
  @pulls
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



14
15
16
# File 'lib/how_is/fetcher.rb', line 14

def repository
  @repository
end