Class: Common2
- Inherits:
-
Object
- Object
- Common2
- Defined in:
- lib/objects/same/common_2.rb
Overview
common class for Audio, Video, and Document and Voice
Instance Method Summary collapse
-
#file_id ⇒ Object
File id for the object.
-
#file_size ⇒ Object
Optional.
File size. -
#file_unique_id ⇒ Object
File unique id for the object.
-
#initialize(obj) ⇒ Common2
constructor
:nodoc:.
-
#mime_type ⇒ Object
Optional
.
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_id ⇒ Object
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_size ⇒ Object
Optional.
File size
35 36 37 |
# File 'lib/objects/same/common_2.rb', line 35 def file_size @obj.file_size end |
#file_unique_id ⇒ Object
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_type ⇒ Object
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 |