Class: Bluplate::Ticket

Inherits:
Object
  • Object
show all
Defined in:
lib/bluplate/ticket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#taskObject

Returns the value of attribute task.



4
5
6
# File 'lib/bluplate/ticket.rb', line 4

def task
  @task
end

#user_emailObject

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_hashObject



11
12
13
# File 'lib/bluplate/ticket.rb', line 11

def to_hash
  {:task => @task, :user_email => @user_email}
end