Class: Ahiru::Result
- Inherits:
-
Object
- Object
- Ahiru::Result
- Defined in:
- lib/ahiru/result.rb
Instance Attribute Summary collapse
-
#snippet ⇒ Object
readonly
Returns the value of attribute snippet.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, title:, snippet:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(url:, title:, snippet:) ⇒ Result
Returns a new instance of Result.
7 8 9 10 11 |
# File 'lib/ahiru/result.rb', line 7 def initialize(url:, title:, snippet:) @url = url @title = title @snippet = snippet end |
Instance Attribute Details
#snippet ⇒ Object (readonly)
Returns the value of attribute snippet.
5 6 7 |
# File 'lib/ahiru/result.rb', line 5 def snippet @snippet end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/ahiru/result.rb', line 5 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/ahiru/result.rb', line 5 def url @url end |