class Weekdone::Cli::Item
Public Instance Methods
getComments()
click to toggle source
# File lib/weekdone/cli/command_item.rb, line 36 def getComments client = build_client comments = client.getItemComments(options[:itemid]) Credential.write_credential(client.token_hash) Output.format(comments, :json) end
likes()
click to toggle source
# File lib/weekdone/cli/command_item.rb, line 25 def likes client = build_client likes = client.getItemLikes(options[:itemid]) Credential.write_credential(client.token_hash) Output.format(likes, format: :json) end
search()
click to toggle source
# File lib/weekdone/cli/command_item.rb, line 15 def search client = build_client items = client.searchForItems(user_id: options[:userid]) Credential.write_credential(client.token_hash) Output.format(items, format: :json) end