Class: FantasticRobot::Model::Chat

Inherits:
Base
  • Object
show all
Defined in:
lib/fantastic_robot/model/chat.rb

Overview

This object represents a chat.

Constant Summary collapse

VALID_TYPES =
["private", "group", "supergroup", "channel"]

Constants inherited from Base

Base::FIELD_CONVERSIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#attributes, #initialize, #to_h

Constructor Details

This class inherits a constructor from FantasticRobot::Model::Base

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name.



7
8
9
# File 'lib/fantastic_robot/model/chat.rb', line 7

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/fantastic_robot/model/chat.rb', line 7

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



7
8
9
# File 'lib/fantastic_robot/model/chat.rb', line 7

def last_name
  @last_name
end

#titleObject

Returns the value of attribute title.



7
8
9
# File 'lib/fantastic_robot/model/chat.rb', line 7

def title
  @title
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/fantastic_robot/model/chat.rb', line 7

def type
  @type
end

#usernameObject

Returns the value of attribute username.



7
8
9
# File 'lib/fantastic_robot/model/chat.rb', line 7

def username
  @username
end