Class: Clubhouse::Project
- Inherits:
-
BaseResource
- Object
- BaseResource
- Clubhouse::Project
- Defined in:
- lib/clubhouse/project.rb
Instance Attribute Summary
Attributes inherited from BaseResource
Instance Method Summary collapse
Methods inherited from BaseResource
all, attributes, attributes_for_create, attributes_for_update, client, delete, find, #initialize, #reload, resource, #save, #update_object_from_payload
Constructor Details
This class inherits a constructor from Clubhouse::BaseResource
Instance Method Details
#stories ⇒ Object
13 14 15 16 17 18 |
# File 'lib/clubhouse/project.rb', line 13 def stories return [] if id.nil? payload = client.get("projects/#{id}/stories") Array(payload).collect{|s| Story.new.update_object_from_payload(s) } end |