Class: HornOfPlenty::Queries::Fetch
- Inherits:
-
Object
- Object
- HornOfPlenty::Queries::Fetch
- Defined in:
- lib/horn_of_plenty/queries/fetch.rb
Direct Known Subclasses
Adapters::Github::Queries::ListBoards, Adapters::Github::Queries::ListCards, Adapters::Github::Queries::ListIssues, Adapters::Github::Queries::ListLanes, Adapters::Github::Queries::ListPullRequests
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Fetch
constructor
A new instance of Fetch.
- #to_h ⇒ Object (also: #to_params)
Constructor Details
#initialize(attrs) ⇒ Fetch
Returns a new instance of Fetch.
7 8 9 |
# File 'lib/horn_of_plenty/queries/fetch.rb', line 7 def initialize(attrs) self.query = attrs.dup end |
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
5 6 7 |
# File 'lib/horn_of_plenty/queries/fetch.rb', line 5 def query @query end |
Instance Method Details
#to_h ⇒ Object Also known as: to_params
11 12 13 |
# File 'lib/horn_of_plenty/queries/fetch.rb', line 11 def to_h @to_h ||= translate(query) end |