class Moip2::KeysApi

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/moip2/keys_api.rb, line 5
def initialize(client)
  @client = client
end

Public Instance Methods

base_path() click to toggle source
# File lib/moip2/keys_api.rb, line 9
def base_path
  "/v2/keys"
end
show() click to toggle source
# File lib/moip2/keys_api.rb, line 13
def show
  Resource::Keys.new(client, client.get(base_path.to_s))
end