Class: Maestro::Story

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/resources/story.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



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={})
  prefix_options[:context] = 'writer'
  attributes.each do |attribute, value|
    send "#{attribute}=", value
  end
  save
end