Exception: Adcloud::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/adcloud/api_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ApiError

Returns a new instance of ApiError.



7
8
9
# File 'lib/adcloud/api_error.rb', line 7

def initialize(response)
  self.response = response
end

Instance Attribute Details

#metaObject

Returns the value of attribute meta.



5
6
7
# File 'lib/adcloud/api_error.rb', line 5

def meta
  @meta
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/adcloud/api_error.rb', line 5

def response
  @response
end

Instance Method Details

#detailsObject



15
16
17
# File 'lib/adcloud/api_error.rb', line 15

def details
  self.meta["details"]
end

#messageObject



23
24
25
# File 'lib/adcloud/api_error.rb', line 23

def message
  self.meta["message"]
end

#statusObject



27
28
29
# File 'lib/adcloud/api_error.rb', line 27

def status
  self.meta["status"]
end

#typeObject



19
20
21
# File 'lib/adcloud/api_error.rb', line 19

def type
  self.meta["type"]
end