Class: Agora::AgoraDynamicKey2::ServiceFpa

Inherits:
Service
  • Object
show all
Defined in:
lib/agora/dynamic_key2/access_token.rb

Constant Summary collapse

SERVICE_TYPE =
4
PRIVILEGE_LOGIN =
1

Instance Attribute Summary

Attributes inherited from Service

#privileges, #type

Instance Method Summary collapse

Methods inherited from Service

#add_privilege, #fetch_uid

Constructor Details

#initializeServiceFpa

Returns a new instance of ServiceFpa.



84
85
86
# File 'lib/agora/dynamic_key2/access_token.rb', line 84

def initialize
  super(SERVICE_TYPE)
end

Instance Method Details

#packObject



88
89
90
# File 'lib/agora/dynamic_key2/access_token.rb', line 88

def pack
  super()
end

#unpack(data) ⇒ Object



92
93
94
# File 'lib/agora/dynamic_key2/access_token.rb', line 92

def unpack(data)
  _, data = super(data)
end