Module: RestBooks::Model
- Included in:
- RestBooks::Models::Author, RestBooks::Models::Book, RestBooks::Models::Category, RestBooks::Models::Comment, RestBooks::Models::List
- Defined in:
- lib/restbooks/mixins/model.rb
Instance Method Summary collapse
- #to_entry ⇒ Object
-
#to_s ⇒ Object
def title=( str ) @title = str @element.elements.text = str end.
Instance Method Details
#to_entry ⇒ Object
36 37 38 |
# File 'lib/restbooks/mixins/model.rb', line 36 def to_entry return @element end |
#to_s ⇒ Object
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 |