Class: Google::Books::SearchInfo
- Inherits:
-
Object
- Object
- Google::Books::SearchInfo
- Defined in:
- lib/bookle/google_books_search_info.rb
Instance Attribute Summary collapse
-
#text_snippet ⇒ Object
readonly
Returns the value of attribute text_snippet.
Instance Method Summary collapse
-
#initialize(search_info) ⇒ SearchInfo
constructor
A new instance of SearchInfo.
Constructor Details
#initialize(search_info) ⇒ SearchInfo
Returns a new instance of SearchInfo.
6 7 8 9 |
# File 'lib/bookle/google_books_search_info.rb', line 6 def initialize(search_info) search_info = {} unless search_info @text_snippet = search_info["textSnippet"] end |
Instance Attribute Details
#text_snippet ⇒ Object (readonly)
Returns the value of attribute text_snippet.
4 5 6 |
# File 'lib/bookle/google_books_search_info.rb', line 4 def text_snippet @text_snippet end |