Exception: ImageToVideoAI::APIError
- Defined in:
- lib/image_to_video_ai/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, code: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status:, code: nil) ⇒ APIError
Returns a new instance of APIError.
13 14 15 16 17 |
# File 'lib/image_to_video_ai/client.rb', line 13 def initialize(, status:, code: nil) super() @status = status @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/image_to_video_ai/client.rb', line 11 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
11 12 13 |
# File 'lib/image_to_video_ai/client.rb', line 11 def status @status end |