Class: Interspire::Subscriber
- Inherits:
-
Object
- Object
- Interspire::Subscriber
- Defined in:
- lib/interspire/subscriber.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, email) ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
#initialize(id, email) ⇒ Subscriber
Returns a new instance of Subscriber.
7 8 9 10 |
# File 'lib/interspire/subscriber.rb', line 7 def initialize(id, email) @id = id @email = email end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/interspire/subscriber.rb', line 3 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/interspire/subscriber.rb', line 3 def id @id end |