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.



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

#customObject (readonly)

Returns the value of attribute custom.



57
58
59
# File 'lib/mij-discord/data/voice.rb', line 57

def custom
  @custom
end

#deprecatedObject (readonly)

Returns the value of attribute deprecated.



55
56
57
# File 'lib/mij-discord/data/voice.rb', line 55

def deprecated
  @deprecated
end

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

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#optimalObject (readonly)

Returns the value of attribute optimal.



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

def optimal
  @optimal
end

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

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

#inspectObject



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