Class: Google::Books::SearchInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/bookle/google_books_search_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_snippetObject (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