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, 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

#issuesObject

Returns the value of attribute issues

Returns:

  • (Object)

    the current value of issues



28
29
30
# File 'lib/how_is/fetcher.rb', line 28

def issues
  @issues
end

#pullsObject

Returns the value of attribute pulls

Returns:

  • (Object)

    the current value of pulls



28
29
30
# File 'lib/how_is/fetcher.rb', line 28

def pulls
  @pulls
end

#pulseObject

Returns the value of attribute pulse

Returns:

  • (Object)

    the current value of pulse



28
29
30
# File 'lib/how_is/fetcher.rb', line 28

def pulse
  @pulse
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



28
29
30
# File 'lib/how_is/fetcher.rb', line 28

def repository
  @repository
end