Class: Rafflesia::PlatformValidationIssue
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PlatformValidationIssue
- 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
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#path ⇒ Object
Returns the value of attribute path.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(json) ⇒ PlatformValidationIssue
constructor
A new instance of PlatformValidationIssue.
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
#code ⇒ Object
Returns the value of attribute code.
15 16 17 |
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
15 16 17 |
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15 def @message end |
#path ⇒ Object
Returns the value of attribute path.
15 16 17 |
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15 def path @path end |
#severity ⇒ Object
Returns the value of attribute severity.
15 16 17 |
# File 'lib/rafflesia/platform/platform_validation_issue.rb', line 15 def severity @severity end |