lib/noko_cli/entries.rb in noko_cli-0.1.2 vs lib/noko_cli/entries.rb in noko_cli-0.2.0
- old
+ new
@@ -33,17 +33,17 @@
def current_user_entries
conn.get("current_user/entries").body
end
def headers
- %w[date minutes description]
+ %w[date minutes project description]
end
def rows
current_user_entries.map { |entry| row(entry) }
end
def row(entry)
- [entry["date"], entry["minutes"], entry["description"]]
+ [entry["date"], entry["minutes"], entry["project"]["name"], entry["description"]]
end
end
end