README.md in tracker_api-0.2.12 vs README.md in tracker_api-1.0.0
- old
+ new
@@ -51,10 +51,10 @@
story = project.story(847762630) # Find a story with the given ID
story.activity # Get a list of all the activity performed on this story
story.name = 'Save the Ewoks' # Update a single story attribute
story.attributes = { name: 'Save the Ewoks', description: '...' } # Update multiple story attributes
-story.labels << TrackerApi::Resources::Label.new(name: 'Endor') # Add a new label to an existing story
+story.add_label('Endor') # Add a new label to an existing story
story.save # Save changes made to a story
story = TrackerApi::Resources::Story.new( client: client,
project_id: 123456,
id: 847762630) # Use the Story resource to get the story