class AsposeSlidesCloud::OleObjectFrame

Represents OleObjectFrame resource.

Attributes

embedded_file_base64_data[RW]

File data of embedded OLE object.

embedded_file_extension[RW]

File extension for the current embedded OLE object

is_object_icon[RW]

True if an object is visible as icon.

object_name[RW]

Returns or sets the name of an object.

object_prog_id[RW]

ProgID of an object.

substitute_picture_format[RW]

OleObject image fill properties.

substitute_picture_title[RW]

The title for OleObject icon.

update_automatic[RW]

Determines if the linked embedded object is automatically updated when the presentation is opened or printed. Read/write Boolean.

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

Calls superclass method
# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 56
def self.attribute_map
  super.merge({
    :'is_object_icon' => :'IsObjectIcon',
    :'substitute_picture_title' => :'SubstitutePictureTitle',
    :'substitute_picture_format' => :'SubstitutePictureFormat',
    :'object_name' => :'ObjectName',
    :'embedded_file_base64_data' => :'EmbeddedFileBase64Data',
    :'embedded_file_extension' => :'EmbeddedFileExtension',
    :'object_prog_id' => :'ObjectProgId',
    :'link_path' => :'LinkPath',
    :'update_automatic' => :'UpdateAutomatic',
  })
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Calls superclass method
# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 87
def initialize(attributes = {})
  super

  if attributes.has_key?(:'IsObjectIcon')
    self.is_object_icon = attributes[:'IsObjectIcon']
  end

  if attributes.has_key?(:'SubstitutePictureTitle')
    self.substitute_picture_title = attributes[:'SubstitutePictureTitle']
  end

  if attributes.has_key?(:'SubstitutePictureFormat')
    self.substitute_picture_format = attributes[:'SubstitutePictureFormat']
  end

  if attributes.has_key?(:'ObjectName')
    self.object_name = attributes[:'ObjectName']
  end

  if attributes.has_key?(:'EmbeddedFileBase64Data')
    self.embedded_file_base64_data = attributes[:'EmbeddedFileBase64Data']
  end

  if attributes.has_key?(:'EmbeddedFileExtension')
    self.embedded_file_extension = attributes[:'EmbeddedFileExtension']
  end

  if attributes.has_key?(:'ObjectProgId')
    self.object_prog_id = attributes[:'ObjectProgId']
  end

  if attributes.has_key?(:'LinkPath')
    self.link_path = attributes[:'LinkPath']
  end

  if attributes.has_key?(:'UpdateAutomatic')
    self.update_automatic = attributes[:'UpdateAutomatic']
  end
  self.type = 'OleObjectFrame'
end
swagger_types() click to toggle source

Attribute type mapping.

Calls superclass method
# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 71
def self.swagger_types
  super.merge({
    :'is_object_icon' => :'BOOLEAN',
    :'substitute_picture_title' => :'String',
    :'substitute_picture_format' => :'PictureFill',
    :'object_name' => :'String',
    :'embedded_file_base64_data' => :'String',
    :'embedded_file_extension' => :'String',
    :'object_prog_id' => :'String',
    :'link_path' => :'String',
    :'update_automatic' => :'BOOLEAN',
  })
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 144
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      self_uri == o.self_uri &&
      alternate_links == o.alternate_links &&
      name == o.name &&
      width == o.width &&
      height == o.height &&
      alternative_text == o.alternative_text &&
      alternative_text_title == o.alternative_text_title &&
      hidden == o.hidden &&
      is_decorative == o.is_decorative &&
      x == o.x &&
      y == o.y &&
      z_order_position == o.z_order_position &&
      fill_format == o.fill_format &&
      effect_format == o.effect_format &&
      three_d_format == o.three_d_format &&
      line_format == o.line_format &&
      hyperlink_click == o.hyperlink_click &&
      hyperlink_mouse_over == o.hyperlink_mouse_over &&
      type == o.type &&
      is_object_icon == o.is_object_icon &&
      substitute_picture_title == o.substitute_picture_title &&
      substitute_picture_format == o.substitute_picture_format &&
      object_name == o.object_name &&
      embedded_file_base64_data == o.embedded_file_base64_data &&
      embedded_file_extension == o.embedded_file_extension &&
      object_prog_id == o.object_prog_id &&
      link_path == o.link_path &&
      update_automatic == o.update_automatic
end
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 179
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 185
def hash
  [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, is_object_icon, substitute_picture_title, substitute_picture_format, object_name, embedded_file_base64_data, embedded_file_extension, object_prog_id, link_path, update_automatic].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Calls superclass method
# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 130
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

Calls superclass method
# File lib/aspose_slides_cloud/models/ole_object_frame.rb, line 137
def valid?
  return false if !super
  true
end