app/models/postman_mta/label.rb in postman_mta-0.2.0 vs app/models/postman_mta/label.rb in postman_mta-0.2.1
- old
+ new
@@ -4,11 +4,19 @@
def initialize(conversation_id)
@conversation_id = conversation_id
end
+ def index(params = {})
+ get('/labels', body: params)
+ end
+
def create(params)
post("/conversations/#{conversation_id}/labels", body: params)
+ end
+
+ def update(label_id, params)
+ patch("/conversations/#{conversation_id}/labels/#{label_id}", body: params)
end
def destroy(label_id)
delete("/conversations/#{conversation_id}/labels/#{label_id}")
end