class Tinypass::Policy
Constants
- DISCOUNT_PREVIOUS_PURCHASE
- DISCOUNT_TOTAL_IN_PERIOD
- POLICY_TYPE
- REMINDER_METER_BY_COUNT
- REMINDER_METER_BY_TIME
- RESTRICT_MAX_PURCHASES
- STRICT_METER_BY_TIME
Public Class Methods
new()
click to toggle source
# File lib/tinypass/policies/policy.rb, line 12 def initialize @map = {} end
Public Instance Methods
[]=(key,value)
click to toggle source
# File lib/tinypass/policies/policy.rb, line 16 def []=(key,value) key = key.to_s @map[key] = value end
to_hash()
click to toggle source
# File lib/tinypass/policies/policy.rb, line 21 def to_hash @map end