Class: Conductor::Http::Models::TargetRef

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/conductor/http/models/target_ref.rb

Overview

TargetRef model - identifies a resource target for authorization

Constant Summary collapse

SWAGGER_TYPES =
{
  type: 'String',
  id: 'String'
}.freeze
ATTRIBUTE_MAP =
{
  type: :type,
  id: :id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json

Constructor Details

#initialize(params = {}) ⇒ TargetRef

Returns a new instance of TargetRef.



32
33
34
35
# File 'lib/conductor/http/models/target_ref.rb', line 32

def initialize(params = {})
  @type = params[:type]
  @id = params[:id]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



30
31
32
# File 'lib/conductor/http/models/target_ref.rb', line 30

def id
  @id
end

#typeObject

Returns the value of attribute type.



30
31
32
# File 'lib/conductor/http/models/target_ref.rb', line 30

def type
  @type
end