Class: Conductor::Http::Models::SubjectRef
- 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
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SubjectRef
constructor
A new instance of SubjectRef.
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
#id ⇒ Object
Returns the value of attribute id.
26 27 28 |
# File 'lib/conductor/http/models/subject_ref.rb', line 26 def id @id end |
#type ⇒ Object
Returns the value of attribute type.
26 27 28 |
# File 'lib/conductor/http/models/subject_ref.rb', line 26 def type @type end |