Class: FantasticRobot::Model::Attachment::Voice

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

Overview

This object represents a voice note.

Constant Summary

Constants inherited from Base

Base::FIELD_CONVERSIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#get_file

Methods inherited from Base

#attributes, #initialize, #to_h

Constructor Details

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

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



5
6
7
# File 'lib/fantastic_robot/model/attachment/voice.rb', line 5

def duration
  @duration
end

#file_idObject

Returns the value of attribute file_id.



5
6
7
# File 'lib/fantastic_robot/model/attachment/voice.rb', line 5

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



5
6
7
# File 'lib/fantastic_robot/model/attachment/voice.rb', line 5

def file_size
  @file_size
end

#mime_typeObject

Returns the value of attribute mime_type.



5
6
7
# File 'lib/fantastic_robot/model/attachment/voice.rb', line 5

def mime_type
  @mime_type
end