Class: CloudRailSi::Types::Error
- Inherits:
-
SandboxObject
- Object
- SandboxObject
- CloudRailSi::Types::Error
- Defined in:
- lib/cloudrail_si/types/Error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message, type) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Methods inherited from SandboxObject
Constructor Details
#initialize(message, type) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 14 |
# File 'lib/cloudrail_si/types/Error.rb', line 8 def initialize(, type) = .nil? ? nil : .gsub('null', 'nil') @message = @type = type super() end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/cloudrail_si/types/Error.rb', line 6 def @message end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/cloudrail_si/types/Error.rb', line 6 def type @type end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/cloudrail_si/types/Error.rb', line 16 def to_s @message end |