Class: Bobot::Event::Referral::Referral
- Inherits:
-
Object
- Object
- Bobot::Event::Referral::Referral
- Defined in:
- lib/bobot/events/referral.rb
Instance Method Summary collapse
-
#initialize(referral) ⇒ Referral
constructor
A new instance of Referral.
- #ref ⇒ Object
- #source ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(referral) ⇒ Referral
Returns a new instance of Referral.
7 8 9 |
# File 'lib/bobot/events/referral.rb', line 7 def initialize(referral) @referral = referral end |
Instance Method Details
#ref ⇒ Object
11 12 13 |
# File 'lib/bobot/events/referral.rb', line 11 def ref @referral['ref'] end |
#source ⇒ Object
15 16 17 |
# File 'lib/bobot/events/referral.rb', line 15 def source @referral['source'] end |
#type ⇒ Object
19 20 21 |
# File 'lib/bobot/events/referral.rb', line 19 def type @referral['type'] end |