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