Class: Maestro::Story
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Maestro::Story
- Defined in:
- lib/resources/story.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/resources/story.rb', line 13 def to_s "#{number}\t#{title} (#{state})" + (owner_id ? " (#{self.owner_id})" : "") end |
#update_attributes(attributes = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/resources/story.rb', line 5 def update_attributes(attributes={}) [:context] = 'writer' attributes.each do |attribute, value| send "#{attribute}=", value end save end |