Class: Google::Books::Epub
- Inherits:
-
Object
- Object
- Google::Books::Epub
- Defined in:
- lib/bookle/google_books_epub.rb
Instance Attribute Summary collapse
-
#is_available ⇒ Object
readonly
Returns the value of attribute is_available.
Instance Method Summary collapse
-
#initialize(epub) ⇒ Epub
constructor
A new instance of Epub.
- #to_hash ⇒ Object
Constructor Details
#initialize(epub) ⇒ Epub
Returns a new instance of Epub.
6 7 8 9 |
# File 'lib/bookle/google_books_epub.rb', line 6 def initialize(epub) epub = {} unless epub @is_available = epub["isAvailable"] end |
Instance Attribute Details
#is_available ⇒ Object (readonly)
Returns the value of attribute is_available.
4 5 6 |
# File 'lib/bookle/google_books_epub.rb', line 4 def is_available @is_available end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 |
# File 'lib/bookle/google_books_epub.rb', line 11 def to_hash {"is_epub_available" => self.is_available} end |