Class: FogbugzService

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

Instance Method Summary collapse

Constructor Details

#initialize(api) ⇒ FogbugzService

Returns a new instance of FogbugzService.



5
6
7
# File 'lib/fogbugz_service.rb', line 5

def initialize(api)
  @api = api
end

Instance Method Details

#append_message(data) ⇒ Object



25
26
27
# File 'lib/fogbugz_service.rb', line 25

def append_message(data)
  tell_fogbugz(:edit, data)
end

#close(data) ⇒ Object



21
22
23
# File 'lib/fogbugz_service.rb', line 21

def close(data)
  tell_fogbugz(:close, data)
end

#complete(data) ⇒ Object



17
18
19
# File 'lib/fogbugz_service.rb', line 17

def complete(data)
  tell_fogbugz(:resolve, data, STATES[:completed])
end

#fix(data) ⇒ Object



13
14
15
# File 'lib/fogbugz_service.rb', line 13

def fix(data)
  tell_fogbugz(:resolve, data, STATES[:fixed])
end

#implement(data) ⇒ Object



9
10
11
# File 'lib/fogbugz_service.rb', line 9

def implement(data)
  tell_fogbugz(:resolve, data, STATES[:implemented])
end

#invalid(data) ⇒ Object



29
30
31
32
33
# File 'lib/fogbugz_service.rb', line 29

def invalid(data)
  # TODO: This silently ignores any bug id reference (#1234) without a
  # predicate; however I currently don't consider it a good idea to treat this
  # transparently as :reference
end

#reopen(data) ⇒ Object



35
36
37
# File 'lib/fogbugz_service.rb', line 35

def reopen(data)
  tell_fogbugz(:reopen, data)
end

#resolve(data) ⇒ Object



39
40
41
# File 'lib/fogbugz_service.rb', line 39

def resolve(data)
  tell_fogbugz(:resolve, data)
end