Class: Retab::Actor
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::Actor
- Defined in:
- lib/retab/workflow_reviews/actor.rb
Constant Summary collapse
- HASH_ATTRS =
{ kind: :kind, id: :id, display_name: :display_name }.freeze
Instance Attribute Summary collapse
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ Actor
constructor
A new instance of Actor.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ Actor
Returns a new instance of Actor.
19 20 21 22 23 24 |
# File 'lib/retab/workflow_reviews/actor.rb', line 19 def initialize(json) hash = self.class.normalize(json) @kind = hash[:kind] @id = hash[:id] @display_name = hash[:display_name] end |
Instance Attribute Details
#display_name ⇒ Object
Returns the value of attribute display_name.
14 15 16 |
# File 'lib/retab/workflow_reviews/actor.rb', line 14 def display_name @display_name end |
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/retab/workflow_reviews/actor.rb', line 14 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
14 15 16 |
# File 'lib/retab/workflow_reviews/actor.rb', line 14 def kind @kind end |