Exception: ZuoraAPI::Exceptions::ZuoraAPIRequestLimit
- Defined in:
- lib/zuora_api/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#default_message ⇒ Object
writeonly
Sets the attribute default_message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, *args) ⇒ ZuoraAPIRequestLimit
constructor
A new instance of ZuoraAPIRequestLimit.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, response = nil, *args) ⇒ ZuoraAPIRequestLimit
61 62 63 64 65 66 |
# File 'lib/zuora_api/exceptions.rb', line 61 def initialize( = nil,response=nil, *args) @code = response.present? && response.class.to_s == "HTTParty::Response" ? response.code : nil = @response = response = "Your request limit has been exceeded for zuora." end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
58 59 60 |
# File 'lib/zuora_api/exceptions.rb', line 58 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
59 60 61 |
# File 'lib/zuora_api/exceptions.rb', line 59 def (value) = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
58 59 60 |
# File 'lib/zuora_api/exceptions.rb', line 58 def response @response end |
Instance Method Details
#to_s ⇒ Object
68 69 70 |
# File 'lib/zuora_api/exceptions.rb', line 68 def to_s || end |