Class: Kameleoon::Interest
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
Attributes inherited from Data
Instance Method Summary collapse
-
#initialize(index) ⇒ Interest
constructor
A new instance of Interest.
- #obtain_full_post_text_line ⇒ Object
Methods inherited from Data
Constructor Details
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
141 142 143 |
# File 'lib/kameleoon/data.rb', line 141 def index @index end |
Instance Method Details
#obtain_full_post_text_line ⇒ Object
150 151 152 153 |
# File 'lib/kameleoon/data.rb', line 150 def obtain_full_post_text_line nonce = Kameleoon::Utils.generate_random_string(NONCE_LENGTH) "eventType=interests&indexes=[" + @index.to_s + "]&fresh=true&nonce=" + nonce end |