Class: Audio

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Audio

Returns a new instance of Audio.



95
96
97
98
99
100
101
# File 'lib/telegramObjects.rb', line 95

def initialize json
  return if !json
  @file_id = json["file_id"]
  @duration = json["duration"]
  @mime_type = json["mime_type"]
  @file_size = json["file_size"]
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



94
95
96
# File 'lib/telegramObjects.rb', line 94

def duration
  @duration
end

#file_idObject

Returns the value of attribute file_id.



94
95
96
# File 'lib/telegramObjects.rb', line 94

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



94
95
96
# File 'lib/telegramObjects.rb', line 94

def file_size
  @file_size
end

#mime_typeObject

Returns the value of attribute mime_type.



94
95
96
# File 'lib/telegramObjects.rb', line 94

def mime_type
  @mime_type
end