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



33
34
35
# File 'lib/aikido/zen/request/schema/auth_schemas.rb', line 33

def location
  @location
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



33
34
35
# File 'lib/aikido/zen/request/schema/auth_schemas.rb', line 33

def name
  @name
end

Instance Method Details

#as_jsonObject



34
35
36
# File 'lib/aikido/zen/request/schema/auth_schemas.rb', line 34

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