Class: GetStream::Generated::Models::SIPChallenge

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/sip_challenge.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ SIPChallenge

Initialize with attributes



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 62

def initialize(attributes = {})
  super(attributes)
  @a1 = attributes[:a1] || attributes['a1'] || nil
  @algorithm = attributes[:algorithm] || attributes['algorithm'] || nil
  @charset = attributes[:charset] || attributes['charset'] || nil
  @cnonce = attributes[:cnonce] || attributes['cnonce'] || nil
  @method = attributes[:method] || attributes['method'] || nil
  @nc = attributes[:nc] || attributes['nc'] || nil
  @nonce = attributes[:nonce] || attributes['nonce'] || nil
  @opaque = attributes[:opaque] || attributes['opaque'] || nil
  @realm = attributes[:realm] || attributes['realm'] || nil
  @response = attributes[:response] || attributes['response'] || nil
  @stale = attributes[:stale] || attributes['stale'] || nil
  @uri = attributes[:uri] || attributes['uri'] || nil
  @userhash = attributes[:userhash] || attributes['userhash'] || nil
  @username = attributes[:username] || attributes['username'] || nil
  @domain = attributes[:domain] || attributes['domain'] || nil
  @qop = attributes[:qop] || attributes['qop'] || nil
end

Instance Attribute Details

#a1String



14
15
16
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 14

def a1
  @a1
end

#algorithmString



17
18
19
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 17

def algorithm
  @algorithm
end

#charsetString



20
21
22
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 20

def charset
  @charset
end

#cnonceString



23
24
25
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 23

def cnonce
  @cnonce
end

#domainArray<String>



56
57
58
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 56

def domain
  @domain
end

#methodString



26
27
28
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 26

def method
  @method
end

#ncString



29
30
31
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 29

def nc
  @nc
end

#nonceString



32
33
34
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 32

def nonce
  @nonce
end

#opaqueString



35
36
37
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 35

def opaque
  @opaque
end

#qopArray<String>



59
60
61
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 59

def qop
  @qop
end

#realmString



38
39
40
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 38

def realm
  @realm
end

#responseString



41
42
43
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 41

def response
  @response
end

#staleBoolean



44
45
46
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 44

def stale
  @stale
end

#uriString



47
48
49
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 47

def uri
  @uri
end

#userhashBoolean



50
51
52
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 50

def userhash
  @userhash
end

#usernameString



53
54
55
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 53

def username
  @username
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/getstream_ruby/generated/models/sip_challenge.rb', line 83

def self.json_field_mappings
  {
    a1: 'a1',
    algorithm: 'algorithm',
    charset: 'charset',
    cnonce: 'cnonce',
    method: 'method',
    nc: 'nc',
    nonce: 'nonce',
    opaque: 'opaque',
    realm: 'realm',
    response: 'response',
    stale: 'stale',
    uri: 'uri',
    userhash: 'userhash',
    username: 'username',
    domain: 'domain',
    qop: 'qop'
  }
end