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.
- #inspect ⇒ Object
Constructor Details
#initialize(data) ⇒ VoiceRegion
Returns a new instance of VoiceRegion.
59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/mij-discord/data/voice.rb', line 59 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.
57 58 59 |
# File 'lib/mij-discord/data/voice.rb', line 57 def custom @custom end |
#deprecated ⇒ Object (readonly)
Returns the value of attribute deprecated.
55 56 57 |
# File 'lib/mij-discord/data/voice.rb', line 55 def deprecated @deprecated end |
#id ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute id.
42 43 44 |
# File 'lib/mij-discord/data/voice.rb', line 42 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
45 46 47 |
# File 'lib/mij-discord/data/voice.rb', line 45 def name @name end |
#optimal ⇒ Object (readonly)
Returns the value of attribute optimal.
53 54 55 |
# File 'lib/mij-discord/data/voice.rb', line 53 def optimal @optimal end |
#sample_hostname ⇒ Object (readonly)
Returns the value of attribute sample_hostname.
47 48 49 |
# File 'lib/mij-discord/data/voice.rb', line 47 def sample_hostname @sample_hostname end |
#sample_port ⇒ Object (readonly)
Returns the value of attribute sample_port.
49 50 51 |
# File 'lib/mij-discord/data/voice.rb', line 49 def sample_port @sample_port end |
#vip ⇒ Object (readonly)
Returns the value of attribute vip.
51 52 53 |
# File 'lib/mij-discord/data/voice.rb', line 51 def vip @vip end |
Instance Method Details
#inspect ⇒ Object
73 74 75 76 77 |
# File 'lib/mij-discord/data/voice.rb', line 73 def inspect MijDiscord.make_inspect(self, :id, :name, :vip, :optimal, :deprecated, :custom, :sample_hostname, :sample_port) end |