Class: FantasticRobot::Model::Message
- Defined in:
- lib/fantastic_robot/model/message.rb
Constant Summary collapse
- FIELD_CONVERSIONS =
Field conversions of this model
{ from: FantasticRobot::Model::User, chat: FantasticRobot::Model::Chat, forward_from: FantasticRobot::Model::User, reply_to_message: FantasticRobot::Model::Message, audio: FantasticRobot::Model::Attachment::Audio, document: FantasticRobot::Model::Attachment::Document, photo: FantasticRobot::Model::Attachment::PhotoSize, sticker: FantasticRobot::Model::Attachment::Sticker, video: FantasticRobot::Model::Attachment::Video, voice: FantasticRobot::Model::Attachment::Voice, contact: FantasticRobot::Model::Attachment::Contact, location: FantasticRobot::Model::Attachment::Location, new_chat_participant: FantasticRobot::Model::User, left_chat_participant: FantasticRobot::Model::User, new_chat_photo: FantasticRobot::Model::Attachment::PhotoSize }
Instance Attribute Summary collapse
-
#audio ⇒ Object
Returns the value of attribute audio.
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#channel_chat_created ⇒ Object
Returns the value of attribute channel_chat_created.
-
#chat ⇒ Object
Returns the value of attribute chat.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#date ⇒ Object
Returns the value of attribute date.
-
#delete_chat_photo ⇒ Object
Returns the value of attribute delete_chat_photo.
-
#document ⇒ Object
Returns the value of attribute document.
-
#forward_date ⇒ Object
Returns the value of attribute forward_date.
-
#forward_from ⇒ Object
Returns the value of attribute forward_from.
-
#from ⇒ Object
Returns the value of attribute from.
-
#group_chat_created ⇒ Object
Returns the value of attribute group_chat_created.
-
#left_chat_participant ⇒ Object
Returns the value of attribute left_chat_participant.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#migrate_from_chat_id ⇒ Object
Returns the value of attribute migrate_from_chat_id.
-
#migrate_to_chat_id ⇒ Object
Returns the value of attribute migrate_to_chat_id.
-
#new_chat_participant ⇒ Object
Returns the value of attribute new_chat_participant.
-
#new_chat_photo ⇒ Object
Returns the value of attribute new_chat_photo.
-
#new_chat_title ⇒ Object
Returns the value of attribute new_chat_title.
-
#photo ⇒ Object
Returns the value of attribute photo.
-
#reply_to_message ⇒ Object
Returns the value of attribute reply_to_message.
-
#sticker ⇒ Object
Returns the value of attribute sticker.
-
#supergroup_chat_created ⇒ Object
Returns the value of attribute supergroup_chat_created.
-
#text ⇒ Object
Returns the value of attribute text.
-
#video ⇒ Object
Returns the value of attribute video.
-
#voice ⇒ Object
Returns the value of attribute voice.
Method Summary
Methods inherited from Base
#attributes, #initialize, #to_h
Constructor Details
This class inherits a constructor from FantasticRobot::Model::Base
Instance Attribute Details
#audio ⇒ Object
Returns the value of attribute audio.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def audio @audio end |
#caption ⇒ Object
Returns the value of attribute caption.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def caption @caption end |
#channel_chat_created ⇒ Object
Returns the value of attribute channel_chat_created.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def channel_chat_created @channel_chat_created end |
#chat ⇒ Object
Returns the value of attribute chat.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def chat @chat end |
#contact ⇒ Object
Returns the value of attribute contact.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def contact @contact end |
#date ⇒ Object
Returns the value of attribute date.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def date @date end |
#delete_chat_photo ⇒ Object
Returns the value of attribute delete_chat_photo.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def delete_chat_photo @delete_chat_photo end |
#document ⇒ Object
Returns the value of attribute document.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def document @document end |
#forward_date ⇒ Object
Returns the value of attribute forward_date.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def forward_date @forward_date end |
#forward_from ⇒ Object
Returns the value of attribute forward_from.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def forward_from @forward_from end |
#from ⇒ Object
Returns the value of attribute from.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def from @from end |
#group_chat_created ⇒ Object
Returns the value of attribute group_chat_created.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def group_chat_created @group_chat_created end |
#left_chat_participant ⇒ Object
Returns the value of attribute left_chat_participant.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def left_chat_participant @left_chat_participant end |
#location ⇒ Object
Returns the value of attribute location.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def location @location end |
#message_id ⇒ Object
Returns the value of attribute message_id.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def end |
#migrate_from_chat_id ⇒ Object
Returns the value of attribute migrate_from_chat_id.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def migrate_from_chat_id @migrate_from_chat_id end |
#migrate_to_chat_id ⇒ Object
Returns the value of attribute migrate_to_chat_id.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def migrate_to_chat_id @migrate_to_chat_id end |
#new_chat_participant ⇒ Object
Returns the value of attribute new_chat_participant.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def new_chat_participant @new_chat_participant end |
#new_chat_photo ⇒ Object
Returns the value of attribute new_chat_photo.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def new_chat_photo @new_chat_photo end |
#new_chat_title ⇒ Object
Returns the value of attribute new_chat_title.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def new_chat_title @new_chat_title end |
#photo ⇒ Object
Returns the value of attribute photo.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def photo @photo end |
#reply_to_message ⇒ Object
Returns the value of attribute reply_to_message.
14 15 16 |
# File 'lib/fantastic_robot/model/message.rb', line 14 def end |
#sticker ⇒ Object
Returns the value of attribute sticker.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def sticker @sticker end |
#supergroup_chat_created ⇒ Object
Returns the value of attribute supergroup_chat_created.
24 25 26 |
# File 'lib/fantastic_robot/model/message.rb', line 24 def supergroup_chat_created @supergroup_chat_created end |
#text ⇒ Object
Returns the value of attribute text.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def text @text end |
#video ⇒ Object
Returns the value of attribute video.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def video @video end |
#voice ⇒ Object
Returns the value of attribute voice.
21 22 23 |
# File 'lib/fantastic_robot/model/message.rb', line 21 def voice @voice end |