lib/todoable_api/item.rb
def create(list_id, name)
        attributes = client.post(path: "lists/#{list_id}/items", params: { item: { name: name }})
        attributes["list_id"] = list_id
        TodoableApi::Item.new(attributes)
      end
# Creates a new Item
# Associated the list_id since the server does not return the list id
# Returns a new item
Creates a new Item
Associated the list_id since the server does not return the list id
Returns a new item
Creates a new Item Associated the list_id since the server does not return the list id Returns a new item
def create(list_id, name)
        attributes = client.post(path: "lists/#{list_id}/items", params: { item: { name: name }})
        attributes["list_id"] = list_id
        TodoableApi::Item.new(attributes)
      end
def create ( list_id , name ) attributes = client . post ( path : "lists/#{list_id}/items" , params : { item : { name : name } } ) attributes [ "list_id" ] = list_id TodoableApi :: Item . new ( attributes ) end
Creates a new Item
Associated the list_id since the server does not return the list id
Returns a new item
Creates a new Item Associated the list_id since the server does not return the list id Returns a new item
list_id
name