Class: Retab::Actor

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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_nameObject

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

#idObject

Returns the value of attribute id.



14
15
16
# File 'lib/retab/workflow_reviews/actor.rb', line 14

def id
  @id
end

#kindObject

Returns the value of attribute kind.



14
15
16
# File 'lib/retab/workflow_reviews/actor.rb', line 14

def kind
  @kind
end