Class: GoGoodreads::Shelf

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/go_goodreads/shelf.rb

Class Method Summary collapse

Methods included from Resource

included, #initialize

Class Method Details

.initialize_with_node(xml) ⇒ Object



6
7
8
9
# File 'lib/go_goodreads/shelf.rb', line 6

def self.initialize_with_node(xml)
  attrs = to_attributes!(xml, :name => {:using => lambda {|n, from| xml[from] }})
  new(attrs)
end