Module: Olibrary::Editions

Included in:
Client
Defined in:
lib/olibrary/client/editions.rb

Instance Method Summary collapse

Instance Method Details

#editions(work, limit = 10, offset = 0) ⇒ Object

Get the editions of a work



5
6
7
8
# File 'lib/olibrary/client/editions.rb', line 5

def editions(work, limit=10, offset=0)
  data = request("/works/#{work}/editions.json?limit=#{limit}&offset=#{offset}")
  editions = Hashie::Mash.new(data)
end