Class: Kameleoon::MappingIdentifier

Inherits:
CustomData show all
Defined in:
lib/kameleoon/data/mapping_identifier.rb

Instance Attribute Summary

Attributes inherited from CustomData

#id, #values

Attributes inherited from Data

#instance

Instance Method Summary collapse

Methods inherited from Data

#mark_as_sent, #mark_as_transmitting, #mark_as_unsent

Constructor Details

#initialize(custom_data) ⇒ MappingIdentifier

Returns a new instance of MappingIdentifier.



8
9
10
# File 'lib/kameleoon/data/mapping_identifier.rb', line 8

def initialize(custom_data)
  super(custom_data.id, *custom_data.values)
end

Instance Method Details

#obtain_full_post_text_lineObject



24
25
26
27
# File 'lib/kameleoon/data/mapping_identifier.rb', line 24

def obtain_full_post_text_line
  mip = Kameleoon::Network::UriHelper.encode_query({ mappingIdentifier: true })
  "#{super}&#{mip}"
end

#sentObject



20
21
22
# File 'lib/kameleoon/data/mapping_identifier.rb', line 20

def sent
  false
end

#to_sObject



29
30
31
# File 'lib/kameleoon/data/mapping_identifier.rb', line 29

def to_s
  "MappingIdentifier{id:#{@id},values:#{@values}}"
end

#transmittingObject



16
17
18
# File 'lib/kameleoon/data/mapping_identifier.rb', line 16

def transmitting
  false
end

#unsentObject



12
13
14
# File 'lib/kameleoon/data/mapping_identifier.rb', line 12

def unsent
  true
end