Class: Kameleoon::Data
- Inherits:
-
Object
- Object
- Kameleoon::Data
- Defined in:
- lib/kameleoon/data/data.rb
Overview
Represents base class for any Kameleoon data
Direct Known Subclasses
Instance Attribute Summary collapse
-
#instance ⇒ Object
readonly
Returns the value of attribute instance.
-
#sent ⇒ Object
Returns the value of attribute sent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_type) ⇒ Data
constructor
A new instance of Data.
- #obtain_full_post_text_line ⇒ Object
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
#instance ⇒ Object (readonly)
Returns the value of attribute instance.
19 20 21 |
# File 'lib/kameleoon/data/data.rb', line 19 def instance @instance end |
#sent ⇒ Object
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_line ⇒ Object
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 |