Class: Rafflesia::SearchWarning
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SearchWarning
- Defined in:
- lib/rafflesia/annotations/search_warning.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, details: :details, message: :message }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#details ⇒ Object
Returns the value of attribute details.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(json) ⇒ SearchWarning
constructor
A new instance of SearchWarning.
Constructor Details
#initialize(json) ⇒ SearchWarning
Returns a new instance of SearchWarning.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/annotations/search_warning.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @code = hash[:code] @details = hash[:details] || {} @message = hash[:message] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
14 15 16 |
# File 'lib/rafflesia/annotations/search_warning.rb', line 14 def code @code end |
#details ⇒ Object
Returns the value of attribute details.
14 15 16 |
# File 'lib/rafflesia/annotations/search_warning.rb', line 14 def details @details end |
#message ⇒ Object
Returns the value of attribute message.
14 15 16 |
# File 'lib/rafflesia/annotations/search_warning.rb', line 14 def @message end |