lib/bloomy/operations/meetings.rb in bloomy-0.4.2 vs lib/bloomy/operations/meetings.rb in bloomy-0.5.4
- old
+ new
@@ -98,11 +98,11 @@
def metrics(meeting_id)
response = @conn.get("L10/#{meeting_id}/measurables").body
response.map do |measurable|
{
id: measurable["Id"],
- name: measurable["Name"].strip,
+ title: measurable["Name"].strip,
target: measurable["Target"],
operator: measurable["Direction"],
format: measurable["Modifiers"],
owner: {
id: measurable["Owner"]["Id"],
@@ -130,11 +130,11 @@
issues = issues(meeting_id, include_closed: include_closed)
todos = todos(meeting_id, include_closed: include_closed)
measurables = metrics(meeting_id)
{
id: meeting[:id],
- name: meeting[:name],
+ title: meeting[:name],
attendees: attendees,
issues: issues,
todos: todos,
metrics: measurables
}
@@ -164,8 +164,9 @@
#
# @param meeting_id [Integer] the ID of the meeting to delete
# @example
# client.meeting.delete(1)
def delete(meeting_id)
- @conn.delete("L10/#{meeting_id}")
+ response = @conn.delete("L10/#{meeting_id}")
+ response.success?
end
end