Class: Pdf4me::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/pdf4me/models/image.rb

Constant Summary collapse

ATTRIBUTES =
{
  image_data: 'String',
  image_type: 'String',
  rectangle: 'Rectangle',
  file_name: 'String',
  compression: 'String',
  rotate: 'Rotate',
  translate: 'Translate',
  transform: 'Transform'
}

Instance Method Summary collapse

Methods inherited from Base

#attributes, #initialize

Methods included from Serializer

#_deserialize, #from_hash, #from_response

Methods included from Assigner

#assign_attributes

Constructor Details

This class inherits a constructor from Pdf4me::Base

Instance Method Details

#defaultsObject



22
23
24
25
26
# File 'lib/pdf4me/models/image.rb', line 22

def defaults
  {
    compression: 'flate'
  }
end

#inspectObject



18
19
20
# File 'lib/pdf4me/models/image.rb', line 18

def inspect
  "#<#{self.class}:0x#{object_id.to_s(16)}>"
end