Class: Aikido::Zen::Request::Schema::AuthSchemas::ApiKey

Inherits:
Struct
  • Object
show all
Defined in:
lib/aikido/zen/request/schema/auth_schemas.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



48
49
50
# File 'lib/aikido/zen/request/schema/auth_schemas.rb', line 48

def location
  @location
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



48
49
50
# File 'lib/aikido/zen/request/schema/auth_schemas.rb', line 48

def name
  @name
end

Instance Method Details

#as_jsonObject



49
50
51
# File 'lib/aikido/zen/request/schema/auth_schemas.rb', line 49

def as_json
  {"type" => "apiKey", "in" => location, "name" => name}.compact
end