Class: Rafflesia::PlatformValidationIssue

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/platform/platform_validation_issue.rb

Constant Summary collapse

HASH_ATTRS =
{
  code: :code,
  message: :message,
  path: :path,
  severity: :severity
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PlatformValidationIssue

Returns a new instance of PlatformValidationIssue.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @code = hash[:code]
  @message = hash[:message]
  @path = hash[:path]
  @severity = hash[:severity]
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



15
16
17
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15

def code
  @code
end

#messageObject

Returns the value of attribute message.



15
16
17
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15

def message
  @message
end

#pathObject

Returns the value of attribute path.



15
16
17
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15

def path
  @path
end

#severityObject

Returns the value of attribute severity.



15
16
17
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15

def severity
  @severity
end