Class: FantasticRobot::Model::Attachment::Document
- Defined in:
- lib/fantastic_robot/model/attachment/document.rb
Overview
This object represents a general file (as opposed to photos, voice messages and audio files).
Constant Summary collapse
- FIELD_CONVERSIONS =
Field conversions of this model
{ thumb: FantasticRobot::Model::Attachment::PhotoSize }
Instance Attribute Summary collapse
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
Method Summary
Methods inherited from Base
Methods inherited from Base
#attributes, #initialize, #to_h
Constructor Details
This class inherits a constructor from FantasticRobot::Model::Base
Instance Attribute Details
#file_id ⇒ Object
Returns the value of attribute file_id.
5 6 7 |
# File 'lib/fantastic_robot/model/attachment/document.rb', line 5 def file_id @file_id end |
#file_name ⇒ Object
Returns the value of attribute file_name.
5 6 7 |
# File 'lib/fantastic_robot/model/attachment/document.rb', line 5 def file_name @file_name end |
#file_size ⇒ Object
Returns the value of attribute file_size.
5 6 7 |
# File 'lib/fantastic_robot/model/attachment/document.rb', line 5 def file_size @file_size end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
5 6 7 |
# File 'lib/fantastic_robot/model/attachment/document.rb', line 5 def mime_type @mime_type end |
#thumb ⇒ Object
Returns the value of attribute thumb.
5 6 7 |
# File 'lib/fantastic_robot/model/attachment/document.rb', line 5 def thumb @thumb end |