Module: RestBooks::Model

Instance Method Summary collapse

Instance Method Details

#to_entryObject



36
37
38
# File 'lib/restbooks/mixins/model.rb', line 36

def to_entry
  return @element
end

#to_sObject

def title=( str )

@title = str
@element.elements['title'].text = str

end



32
33
34
# File 'lib/restbooks/mixins/model.rb', line 32

def to_s
  return @element.to_s
end