Exception: Resizing::APIError

Inherits:
Error
  • Object
show all
Defined in:
lib/resizing.rb

Instance Method Summary collapse

Instance Method Details

#decoded_bodyObject



22
23
24
# File 'lib/resizing.rb', line 22

def decoded_body
  @decoded_body ||= {}
end

#decoded_body=(value) ⇒ Object

Raises:

  • (ArgumentError)


26
27
28
29
# File 'lib/resizing.rb', line 26

def decoded_body=(value)
  raise ArgumentError, 'The decoded_body is expected to be passed a Hash.' unless value.is_a? Hash
  @decoded_body = value
end