lib/totter/client/choices.rb in totter-0.2.10 vs lib/totter/client/choices.rb in totter-0.2.11

- old
+ new

@@ -7,11 +7,11 @@ # @param user_id [Numeric] The choice's decision's user id # @param decision_id [Numeric] The choice's decision's id # @param choice_id [Numeric] The choice's id # @return [Hashie::Mash] # @example - # Seesaw.choice(1, 1, 1) + # Totter.choice(1, 1, 1) def choice(user_id, decision_id, choice_id) get "users/#{user_id}/decisions/#{decision_id}/choices/#{choice_id}" end @@ -24,11 +24,11 @@ # @option options [String] :subject The image label # @option options [String] :link_url A link to this image's page # @option options [String] :link_title The title of a link to this image's page # @return [Hashie::Mash] # @example - # Seesaw.create_choice_for_image(1, 1, image_url: 'http://recess.s3.amazonaws.com/default_avatars/v1/photo_1.png', \ + # Totter.create_choice_for_image(1, 1, image_url: 'http://recess.s3.amazonaws.com/default_avatars/v1/photo_1.png', \ # subject: 'Sample Avatar', link_url: 'https://seesaw.co', link_title: 'Seesaw') def create_choice_for_image(user_id, decision_id, options = {}) raise ArgumentError.new('image_url option is required') unless options[:image_url] data = { @@ -51,11 +51,11 @@ # # @param user_id [Numeric] The choice's decision's user id # @param decision_id [Numeric] The choice's decision's id # @return [Hashie::Mash] # @example - # Seesaw.create_choice_upload(1, 1) + # Totter.create_choice_upload(1, 1) def create_choice_upload(user_id, decision_id) post "users/#{user_id}/decisions/#{decision_id}/choices" end # Destroy a choice @@ -63,10 +63,10 @@ # @param user_id [Numeric] The choice's decision's user id # @param decision_id [Numeric] The choice's decision's id # @param choice_id [Numeric] The choice's id # @return [Boolean] True if follow was successful, false otherwise. # @example - # Seesaw.destroy_choice(1, 1) + # Totter.destroy_choice(1, 1) def destroy_choice(user_id, decision_id, choice_id) boolean_from_response :delete, "users/#{user_id}/decisions/#{decision_id}/choices/#{choice_id}" end end end