Class: CloudRailSi::Types::Error

Inherits:
SandboxObject show all
Defined in:
lib/cloudrail_si/types/Error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SandboxObject

#get, #set

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(message, type)
    updated_message = message.nil? ? nil : message.gsub('null', 'nil')

    @message = updated_message
    @type = type
    super()
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/cloudrail_si/types/Error.rb', line 6

def message
  @message
end

#typeObject

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_sObject



16
17
18
# File 'lib/cloudrail_si/types/Error.rb', line 16

def to_s
    @message
end