class Phraseapp::Rest::Resource::Key
Public Class Methods
new(client:, project_id:)
click to toggle source
# File lib/phraseapp-rest/resource/key.rb, line 12 def initialize(client:, project_id:) @client = client @path = "/projects/#{project_id}/keys" end
Public Instance Methods
get(id:)
click to toggle source
# File lib/phraseapp-rest/resource/key.rb, line 17 def get(id:) Parser.parse(@client.get("#{@path}/#{id}")) end