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