Class: Kameleoon::MappingIdentifier
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
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_line ⇒ Object
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
|
#sent ⇒ Object
20
21
22
|
# File 'lib/kameleoon/data/mapping_identifier.rb', line 20
def sent
false
end
|
#to_s ⇒ Object
29
30
31
|
# File 'lib/kameleoon/data/mapping_identifier.rb', line 29
def to_s
"MappingIdentifier{id:#{@id},values:#{@values}}"
end
|
#transmitting ⇒ Object
16
17
18
|
# File 'lib/kameleoon/data/mapping_identifier.rb', line 16
def transmitting
false
end
|
#unsent ⇒ Object
12
13
14
|
# File 'lib/kameleoon/data/mapping_identifier.rb', line 12
def unsent
true
end
|