Class: MijDiscord::Data::VoiceRegion
- Inherits:
-
Object
- Object
- MijDiscord::Data::VoiceRegion
- Defined in:
- lib/mij-discord/data/voice.rb
Instance Attribute Summary collapse
-
#custom ⇒ Object
readonly
Returns the value of attribute custom.
-
#deprecated ⇒ Object
readonly
Returns the value of attribute deprecated.
-
#id ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#optimal ⇒ Object
readonly
Returns the value of attribute optimal.
-
#sample_hostname ⇒ Object
readonly
Returns the value of attribute sample_hostname.
-
#sample_port ⇒ Object
readonly
Returns the value of attribute sample_port.
-
#vip ⇒ Object
readonly
Returns the value of attribute vip.
Instance Method Summary collapse
-
#initialize(data) ⇒ VoiceRegion
constructor
A new instance of VoiceRegion.
Constructor Details
#initialize(data) ⇒ VoiceRegion
Returns a new instance of VoiceRegion.
54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/mij-discord/data/voice.rb', line 54 def initialize(data) @id = data['id'] @name = data['name'] @sample_hostname = data['sample_hostname'] @sample_port = data['sample_port'] @vip = data['vip'] @optimal = data['optimal'] @deprecated = data['deprecated'] @custom = data['custom'] end |
Instance Attribute Details
#custom ⇒ Object (readonly)
Returns the value of attribute custom.
52 53 54 |
# File 'lib/mij-discord/data/voice.rb', line 52 def custom @custom end |
#deprecated ⇒ Object (readonly)
Returns the value of attribute deprecated.
50 51 52 |
# File 'lib/mij-discord/data/voice.rb', line 50 def deprecated @deprecated end |
#id ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute id.
37 38 39 |
# File 'lib/mij-discord/data/voice.rb', line 37 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
40 41 42 |
# File 'lib/mij-discord/data/voice.rb', line 40 def name @name end |
#optimal ⇒ Object (readonly)
Returns the value of attribute optimal.
48 49 50 |
# File 'lib/mij-discord/data/voice.rb', line 48 def optimal @optimal end |
#sample_hostname ⇒ Object (readonly)
Returns the value of attribute sample_hostname.
42 43 44 |
# File 'lib/mij-discord/data/voice.rb', line 42 def sample_hostname @sample_hostname end |
#sample_port ⇒ Object (readonly)
Returns the value of attribute sample_port.
44 45 46 |
# File 'lib/mij-discord/data/voice.rb', line 44 def sample_port @sample_port end |
#vip ⇒ Object (readonly)
Returns the value of attribute vip.
46 47 48 |
# File 'lib/mij-discord/data/voice.rb', line 46 def vip @vip end |