lib/tracker_api/endpoints/story.rb in tracker_api-0.2.9 vs lib/tracker_api/endpoints/story.rb in tracker_api-0.2.10
- old
+ new
@@ -5,17 +5,17 @@
def initialize(client)
@client = client
end
- def get(project_id, id)
- data = client.get("/projects/#{project_id}/stories/#{id}").body
+ def get(project_id, id, params={})
+ data = client.get("/projects/#{project_id}/stories/#{id}", params: params).body
Resources::Story.new({ client: client, project_id: project_id }.merge(data))
end
- def get_story(story_id)
- data = client.get("/stories/#{story_id}").body
+ def get_story(story_id, params={})
+ data = client.get("/stories/#{story_id}", params: params).body
Resources::Story.new({ client: client }.merge(data))
end
def create(project_id, params={})