Class: Opera::AdMarvel::Impression
- Inherits:
-
Object
- Object
- Opera::AdMarvel::Impression
- Includes:
- Reportable
- Defined in:
- lib/opera/ad_marvel/models/impression.rb
Instance Attribute Summary collapse
-
#random ⇒ Object
Returns the value of attribute random.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#attributes_with_payload_keys ⇒ Object
Override to add random and user_id:.
Methods included from Reportable
Instance Attribute Details
#random ⇒ Object
Returns the value of attribute random.
9 10 11 |
# File 'lib/opera/ad_marvel/models/impression.rb', line 9 def random @random end |
#user_id ⇒ Object
Returns the value of attribute user_id.
9 10 11 |
# File 'lib/opera/ad_marvel/models/impression.rb', line 9 def user_id @user_id end |
Instance Method Details
#attributes_with_payload_keys ⇒ Object
Override to add random and user_id:
16 17 18 19 20 |
# File 'lib/opera/ad_marvel/models/impression.rb', line 16 def attributes_with_payload_keys super.merge( { "cb" => random, "uid" => user_id }.select { |_, value| !value.nil? } ) end |