Class: AsposeSlidesCloud::OleObjectFrame

Inherits:
ShapeBase show all
Defined in:
lib/aspose_slides_cloud/models/ole_object_frame.rb

Overview

Represents OleObjectFrame resource.

Instance Attribute Summary collapse

Attributes inherited from ShapeBase

#alternative_text, #alternative_text_title, #effect_format, #fill_format, #height, #hidden, #hyperlink_click, #hyperlink_mouse_over, #is_decorative, #line_format, #name, #three_d_format, #type, #width, #x, #y, #z_order_position

Attributes inherited from ResourceBase

#alternate_links, #self_uri

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ OleObjectFrame

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# 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

Instance Attribute Details

#embedded_file_base64_dataObject

File data of embedded OLE object.



41
42
43
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 41

def embedded_file_base64_data
  @embedded_file_base64_data
end

#embedded_file_extensionObject

File extension for the current embedded OLE object



44
45
46
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 44

def embedded_file_extension
  @embedded_file_extension
end

#is_object_iconObject

True if an object is visible as icon.



29
30
31
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 29

def is_object_icon
  @is_object_icon
end

Full path to a linked file.



50
51
52
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 50

def link_path
  @link_path
end

#object_nameObject

Returns or sets the name of an object.



38
39
40
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 38

def object_name
  @object_name
end

#object_prog_idObject

ProgID of an object.



47
48
49
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 47

def object_prog_id
  @object_prog_id
end

#substitute_picture_formatObject

OleObject image fill properties.



35
36
37
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 35

def substitute_picture_format
  @substitute_picture_format
end

#substitute_picture_titleObject

The title for OleObject icon.



32
33
34
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 32

def substitute_picture_title
  @substitute_picture_title
end

#update_automaticObject

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



53
54
55
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 53

def update_automatic
  @update_automatic
end

Class Method Details

.attribute_mapObject

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



56
57
58
59
60
61
62
63
64
65
66
67
68
# 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

.swagger_typesObject

Attribute type mapping.



71
72
73
74
75
76
77
78
79
80
81
82
83
# 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

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# 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) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


179
180
181
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 179

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



185
186
187
# 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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



130
131
132
133
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 130

def list_invalid_properties
  invalid_properties = super
  invalid_properties
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



137
138
139
140
# File 'lib/aspose_slides_cloud/models/ole_object_frame.rb', line 137

def valid?
  return false if !super
  true
end