Class: Retab::ReviewCategoryIn

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_reviews/review_category_in.rb

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind,
  categories: :categories
}.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) ⇒ ReviewCategoryIn

Returns a new instance of ReviewCategoryIn.



17
18
19
20
21
# File 'lib/retab/workflow_reviews/review_category_in.rb', line 17

def initialize(json)
  hash = self.class.normalize(json)
  @kind = hash[:kind]
  @categories = (hash[:categories] || [])
end

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories.



13
14
15
# File 'lib/retab/workflow_reviews/review_category_in.rb', line 13

def categories
  @categories
end

#kindObject

Returns the value of attribute kind.



13
14
15
# File 'lib/retab/workflow_reviews/review_category_in.rb', line 13

def kind
  @kind
end