Class: Common2

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/same/common_2.rb

Overview

common class for Audio, Video, and Document and Voice

Direct Known Subclasses

Audio, Document, Video, Voice

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Common2

:nodoc:



14
15
16
17
# File 'lib/objects/same/common_2.rb', line 14

def initialize(obj) # :nodoc:
  @obj = obj
  freeze
end

Instance Method Details

#file_idObject

File id for the object



20
21
22
# File 'lib/objects/same/common_2.rb', line 20

def file_id
  @obj.file_id
end

#file_sizeObject

Optional. File size



35
36
37
# File 'lib/objects/same/common_2.rb', line 35

def file_size
  @obj.file_size
end

#file_unique_idObject

File unique id for the object.



25
26
27
# File 'lib/objects/same/common_2.rb', line 25

def file_unique_id
  @obj.file_unique_id
end

#mime_typeObject

Optional. MIME type of the file as defined by sender.



30
31
32
# File 'lib/objects/same/common_2.rb', line 30

def mime_type
  @obj.mime_type
end