Class: Conductor::Http::Models::SubjectRef

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

Overview

SubjectRef model - identifies a user, role, or group 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 = {}) ⇒ SubjectRef

Returns a new instance of SubjectRef.



28
29
30
31
# File 'lib/conductor/http/models/subject_ref.rb', line 28

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



26
27
28
# File 'lib/conductor/http/models/subject_ref.rb', line 26

def id
  @id
end

#typeObject

Returns the value of attribute type.



26
27
28
# File 'lib/conductor/http/models/subject_ref.rb', line 26

def type
  @type
end