Class: Freshmaker::TicketProxy
- Inherits:
-
Object
- Object
- Freshmaker::TicketProxy
- Defined in:
- lib/freshmaker/ticket_proxy.rb
Instance Method Summary collapse
- #get(email) ⇒ Object
-
#initialize(client) ⇒ TicketProxy
constructor
A new instance of TicketProxy.
Constructor Details
#initialize(client) ⇒ TicketProxy
Returns a new instance of TicketProxy.
3 4 5 |
# File 'lib/freshmaker/ticket_proxy.rb', line 3 def initialize(client) @client = client end |
Instance Method Details
#get(email) ⇒ Object
7 8 9 10 |
# File 'lib/freshmaker/ticket_proxy.rb', line 7 def get(email) response = @client.get('/helpdesk/tickets/user_ticket', query: { email: email }) response['helpdesk_tickets'] || [] end |