Class: Finlight::ArticleResponse
- Inherits:
-
Object
- Object
- Finlight::ArticleResponse
- Defined in:
- lib/finlight/models.rb
Overview
A page of search results.
Instance Attribute Summary collapse
-
#articles ⇒ Object
readonly
Returns the value of attribute articles.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#page_size ⇒ Object
readonly
Returns the value of attribute page_size.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status:, page:, page_size:, articles:) ⇒ ArticleResponse
constructor
A new instance of ArticleResponse.
Constructor Details
#initialize(status:, page:, page_size:, articles:) ⇒ ArticleResponse
Returns a new instance of ArticleResponse.
154 155 156 157 158 159 |
# File 'lib/finlight/models.rb', line 154 def initialize(status:, page:, page_size:, articles:) @status = status @page = page @page_size = page_size @articles = articles end |
Instance Attribute Details
#articles ⇒ Object (readonly)
Returns the value of attribute articles.
152 153 154 |
# File 'lib/finlight/models.rb', line 152 def articles @articles end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
152 153 154 |
# File 'lib/finlight/models.rb', line 152 def page @page end |
#page_size ⇒ Object (readonly)
Returns the value of attribute page_size.
152 153 154 |
# File 'lib/finlight/models.rb', line 152 def page_size @page_size end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
152 153 154 |
# File 'lib/finlight/models.rb', line 152 def status @status end |