Class: Bluplate::Ticket
- Inherits:
-
Object
- Object
- Bluplate::Ticket
- Defined in:
- lib/bluplate/ticket.rb
Instance Attribute Summary collapse
-
#task ⇒ Object
Returns the value of attribute task.
-
#user_email ⇒ Object
Returns the value of attribute user_email.
Instance Method Summary collapse
-
#initialize(task, user_email) ⇒ Ticket
constructor
A new instance of Ticket.
- #to_hash ⇒ Object
Constructor Details
#initialize(task, user_email) ⇒ Ticket
Returns a new instance of Ticket.
6 7 8 9 |
# File 'lib/bluplate/ticket.rb', line 6 def initialize(task, user_email) @task = task @user_email = user_email end |
Instance Attribute Details
#task ⇒ Object
Returns the value of attribute task.
4 5 6 |
# File 'lib/bluplate/ticket.rb', line 4 def task @task end |
#user_email ⇒ Object
Returns the value of attribute user_email.
4 5 6 |
# File 'lib/bluplate/ticket.rb', line 4 def user_email @user_email end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 |
# File 'lib/bluplate/ticket.rb', line 11 def to_hash {:task => @task, :user_email => @user_email} end |