Class: HornOfPlenty::Adapters::Github::Responses::ListCards

Inherits:
HornOfPlenty::Adapters::Github::Response show all
Defined in:
lib/horn_of_plenty/adapters/github/responses/list_cards.rb

Instance Attribute Summary

Attributes inherited from Response

#raw_response

Instance Method Summary collapse

Methods inherited from HornOfPlenty::Adapters::Github::Response

#error

Methods inherited from Response

#body, #initialize, #items, parse, #status_code, #status_message, #successful?

Constructor Details

This class inherits a constructor from HornOfPlenty::Response

Instance Method Details

#parser_classObject



16
17
18
# File 'lib/horn_of_plenty/adapters/github/responses/list_cards.rb', line 16

def parser_class
  @parser_class ||= Parsers::Card
end

#resultObject



11
12
13
14
# File 'lib/horn_of_plenty/adapters/github/responses/list_cards.rb', line 11

def result
  @result ||= Collections::Card.new(items:  items,
                                    parser: parser_class)
end