Class: Kameleoon::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/data/data.rb

Overview

Represents base class for any Kameleoon data

Direct Known Subclasses

Browser, Conversion, CustomData, Device, PageView

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_type) ⇒ Data

Returns a new instance of Data.



22
23
24
25
# File 'lib/kameleoon/data/data.rb', line 22

def initialize(data_type)
  @instance = data_type
  @sent = false
end

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



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

def instance
  @instance
end

#sentObject

Returns the value of attribute sent.



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

def sent
  @sent
end

Class Method Details

.encode(url) ⇒ Object



31
32
33
# File 'lib/kameleoon/data/data.rb', line 31

def self.encode(url)
  Network::UriHelper.encode_uri(url)
end

Instance Method Details

#obtain_full_post_text_lineObject

Raises:

  • (KameleoonError.new('ToDo: implement this method.'))


27
28
29
# File 'lib/kameleoon/data/data.rb', line 27

def obtain_full_post_text_line
  raise KameleoonError.new('ToDo: implement this method.'), 'ToDo: implement this method.'
end