Class: Botomizer::Chat

Inherits:
Object
  • Object
show all
Defined in:
lib/botomizer/chat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Chat

Returns a new instance of Chat.



4
5
6
7
8
9
10
11
# File 'lib/botomizer/chat.rb', line 4

def initialize(params)
  @id         = params[:id]
  @type       = params[:type]
  @first_name = params[:first_name]
  @last_name  = params[:last_name]
  @title      = params[:title]
  @username   = params[:username]
end

Instance Attribute Details

#first_nameObject (readonly)

Returns the value of attribute first_name.



2
3
4
# File 'lib/botomizer/chat.rb', line 2

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/botomizer/chat.rb', line 2

def id
  @id
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



2
3
4
# File 'lib/botomizer/chat.rb', line 2

def last_name
  @last_name
end

#titleObject (readonly)

Returns the value of attribute title.



2
3
4
# File 'lib/botomizer/chat.rb', line 2

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'lib/botomizer/chat.rb', line 2

def type
  @type
end

#usernameObject (readonly)

Returns the value of attribute username.



2
3
4
# File 'lib/botomizer/chat.rb', line 2

def username
  @username
end