Class: RemoteBook::Base
- Inherits:
-
Object
- Object
- RemoteBook::Base
- Defined in:
- lib/remote_book/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#isbn ⇒ Object
Returns the value of attribute isbn.
-
#link ⇒ Object
Returns the value of attribute link.
Class Method Summary collapse
- .associate_keys ⇒ Object
- .associate_keys=(obj) ⇒ Object
- .find(options) ⇒ Object
- .find_by_isbn(isbn) ⇒ Object
- .setup {|_self| ... } ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#isbn ⇒ Object
Returns the value of attribute isbn.
3 4 5 |
# File 'lib/remote_book/base.rb', line 3 def isbn @isbn end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/remote_book/base.rb', line 3 def link @link end |
Class Method Details
.associate_keys ⇒ Object
10 11 12 |
# File 'lib/remote_book/base.rb', line 10 def associate_keys @@associate_keys ||= {} end |
.associate_keys=(obj) ⇒ Object
14 15 16 |
# File 'lib/remote_book/base.rb', line 14 def associate_keys=(obj) @@associate_keys = obj end |
.find(options) ⇒ Object
26 27 28 |
# File 'lib/remote_book/base.rb', line 26 def find() end |
.find_by_isbn(isbn) ⇒ Object
22 23 24 |
# File 'lib/remote_book/base.rb', line 22 def find_by_isbn(isbn) find(:isbn => isbn) end |
.setup {|_self| ... } ⇒ Object
18 19 20 |
# File 'lib/remote_book/base.rb', line 18 def setup yield self end |
Instance Method Details
#author ⇒ Object
5 6 7 |
# File 'lib/remote_book/base.rb', line 5 def @authors.join(", ") end |