Class: Twilic::Core::V2::EncodeState

Inherits:
Object
  • Object
show all
Defined in:
lib/twilic/core/v2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEncodeState

Returns a new instance of EncodeState.



39
40
41
42
43
44
45
46
# File 'lib/twilic/core/v2.rb', line 39

def initialize
  @key_ids = {}
  @str_ids = {}
  @shape_ids = {}
  @next_key_id = 0
  @next_str_id = 0
  @next_shape_id = 0
end

Instance Attribute Details

#key_idsObject

Returns the value of attribute key_ids.



37
38
39
# File 'lib/twilic/core/v2.rb', line 37

def key_ids
  @key_ids
end

#next_key_idObject

Returns the value of attribute next_key_id.



37
38
39
# File 'lib/twilic/core/v2.rb', line 37

def next_key_id
  @next_key_id
end

#next_shape_idObject

Returns the value of attribute next_shape_id.



37
38
39
# File 'lib/twilic/core/v2.rb', line 37

def next_shape_id
  @next_shape_id
end

#next_str_idObject

Returns the value of attribute next_str_id.



37
38
39
# File 'lib/twilic/core/v2.rb', line 37

def next_str_id
  @next_str_id
end

#shape_idsObject

Returns the value of attribute shape_ids.



37
38
39
# File 'lib/twilic/core/v2.rb', line 37

def shape_ids
  @shape_ids
end

#str_idsObject

Returns the value of attribute str_ids.



37
38
39
# File 'lib/twilic/core/v2.rb', line 37

def str_ids
  @str_ids
end