Class: Houston::Adapters::TicketTracker::NullConnectionClass

Inherits:
Object
  • Object
show all
Defined in:
app/adapters/houston/adapters/ticket_tracker/null_connection.rb

Instance Method Summary collapse

Instance Method Details

#build_ticket(attributes) ⇒ Object



14
15
16
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 14

def build_ticket(attributes)
  NullTicket
end

#create_ticket!(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 18

def create_ticket!(attributes)
  raise NotImplementedError
end

#featuresObject

Public API for a TicketTracker connection ————————————————————————- #



10
11
12
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 10

def features
  []
end

#find_ticket_by_number(number) ⇒ Object



22
23
24
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 22

def find_ticket_by_number(number)
  nil
end

#nil?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 37

def nil?
  true
end

#project_urlObject



26
27
28
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 26

def project_url
  nil
end

#ticket_url(ticket_number) ⇒ Object



30
31
32
# File 'app/adapters/houston/adapters/ticket_tracker/null_connection.rb', line 30

def ticket_url(ticket_number)
  nil
end