Exception: SonyCameraRemote::Camera::IncompatibleAPIVersion
- Inherits:
-
StandardError
- Object
- StandardError
- SonyCameraRemote::Camera::IncompatibleAPIVersion
- Defined in:
- lib/sony_camera_remote/camera.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#supported ⇒ Object
readonly
Returns the value of attribute supported.
Instance Method Summary collapse
-
#initialize(supported, actual) ⇒ IncompatibleAPIVersion
constructor
A new instance of IncompatibleAPIVersion.
Constructor Details
#initialize(supported, actual) ⇒ IncompatibleAPIVersion
Returns a new instance of IncompatibleAPIVersion.
21 22 23 24 |
# File 'lib/sony_camera_remote/camera.rb', line 21 def initialize(supported, actual) super("The camera provides API version #{actual}, but this library only supports #{supported}.") @supported, @actual = supported, actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
19 20 21 |
# File 'lib/sony_camera_remote/camera.rb', line 19 def actual @actual end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported.
19 20 21 |
# File 'lib/sony_camera_remote/camera.rb', line 19 def supported @supported end |