Class: Kount::RIS::Trigger::Counter

Inherits:
Base
  • Object
show all
Defined in:
app/models/kount/ris/trigger/counter.rb

Constant Summary

Constants inherited from Base

Base::COUNTRY_CODES

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count.



5
6
7
# File 'app/models/kount/ris/trigger/counter.rb', line 5

def count
  @count
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'app/models/kount/ris/trigger/counter.rb', line 5

def name
  @name
end

Instance Method Details

#to_hObject



10
11
12
13
14
15
# File 'app/models/kount/ris/trigger/counter.rb', line 10

def to_h
  {
    name: name,
    count: count,
  }
end