Class: Xoxzo::Cloudruby::XoxzoResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/xoxzo/cloudruby.rb

Overview

Return object class for Xoxzo Cloud API

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors: nil, message: Hash.new, messages: []) ⇒ XoxzoResponse

Returns a new instance of XoxzoResponse.



11
12
13
14
15
16
17
18
# File 'lib/xoxzo/cloudruby.rb', line 11

def initialize(errors: nil, message: Hash.new, messages: [])
  # error status, nil if no errors
  @errors = errors
  # return information in hash
  @message = message
  # return information in array
  @messages = messages
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



19
20
21
# File 'lib/xoxzo/cloudruby.rb', line 19

def errors
  @errors
end

#messageObject

Returns the value of attribute message.



19
20
21
# File 'lib/xoxzo/cloudruby.rb', line 19

def message
  @message
end

#messagesObject

Returns the value of attribute messages.



19
20
21
# File 'lib/xoxzo/cloudruby.rb', line 19

def messages
  @messages
end