Class: LiveResource::RemoteMethodToken
- Inherits:
-
Object
- Object
- LiveResource::RemoteMethodToken
- Defined in:
- lib/live_resource/methods/token.rb
Instance Attribute Summary collapse
-
#redis_class ⇒ Object
readonly
Returns the value of attribute redis_class.
-
#redis_name ⇒ Object
readonly
Returns the value of attribute redis_name.
-
#seq ⇒ Object
readonly
Returns the value of attribute seq.
Instance Method Summary collapse
- #encode_with(coder) ⇒ Object
-
#initialize(redis_class, redis_name, seq) ⇒ RemoteMethodToken
constructor
A new instance of RemoteMethodToken.
Constructor Details
#initialize(redis_class, redis_name, seq) ⇒ RemoteMethodToken
Returns a new instance of RemoteMethodToken.
7 8 9 10 11 |
# File 'lib/live_resource/methods/token.rb', line 7 def initialize(redis_class, redis_name, seq) @redis_class = redis_class @redis_name = redis_name @seq = seq end |
Instance Attribute Details
#redis_class ⇒ Object (readonly)
Returns the value of attribute redis_class.
5 6 7 |
# File 'lib/live_resource/methods/token.rb', line 5 def redis_class @redis_class end |
#redis_name ⇒ Object (readonly)
Returns the value of attribute redis_name.
5 6 7 |
# File 'lib/live_resource/methods/token.rb', line 5 def redis_name @redis_name end |
#seq ⇒ Object (readonly)
Returns the value of attribute seq.
5 6 7 |
# File 'lib/live_resource/methods/token.rb', line 5 def seq @seq end |
Instance Method Details
#encode_with(coder) ⇒ Object
13 14 15 |
# File 'lib/live_resource/methods/token.rb', line 13 def encode_with coder coder.represent_scalar '!live_resource:token', "#{@redis_class}.#{@redis_name}.#{@seq}" end |