Class: MijDiscord::Data::VoiceRegion

Inherits:
Object
  • Object
show all
Defined in:
lib/mij-discord/data/voice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#customObject (readonly)

Returns the value of attribute custom.



52
53
54
# File 'lib/mij-discord/data/voice.rb', line 52

def custom
  @custom
end

#deprecatedObject (readonly)

Returns the value of attribute deprecated.



50
51
52
# File 'lib/mij-discord/data/voice.rb', line 50

def deprecated
  @deprecated
end

#idObject (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

#nameObject (readonly)

Returns the value of attribute name.



40
41
42
# File 'lib/mij-discord/data/voice.rb', line 40

def name
  @name
end

#optimalObject (readonly)

Returns the value of attribute optimal.



48
49
50
# File 'lib/mij-discord/data/voice.rb', line 48

def optimal
  @optimal
end

#sample_hostnameObject (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_portObject (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

#vipObject (readonly)

Returns the value of attribute vip.



46
47
48
# File 'lib/mij-discord/data/voice.rb', line 46

def vip
  @vip
end