Class: RemoteBook::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/remote_book/base.rb

Direct Known Subclasses

Amazon, BarnesAndNoble

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#isbnObject

Returns the value of attribute isbn.



3
4
5
# File 'lib/remote_book/base.rb', line 3

def isbn
  @isbn
end

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_keysObject



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(options)

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

Yields:

  • (_self)

Yield Parameters:



18
19
20
# File 'lib/remote_book/base.rb', line 18

def setup
  yield self
end

Instance Method Details

#authorObject



5
6
7
# File 'lib/remote_book/base.rb', line 5

def author
  @authors.join(", ")
end