Class: R2OAS::Hooks::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/r2-oas/hooks/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ Repository

Returns a new instance of Repository.



8
9
10
11
12
# File 'lib/r2-oas/hooks/repository.rb', line 8

def initialize(target)
  @global_hooks_data = {}
  @last_hook_id = 0
  @target = target
end

Instance Attribute Details

#global_hooks_dataObject

Returns the value of attribute global_hooks_data.



6
7
8
# File 'lib/r2-oas/hooks/repository.rb', line 6

def global_hooks_data
  @global_hooks_data
end

#last_hook_idObject

Returns the value of attribute last_hook_id.



6
7
8
# File 'lib/r2-oas/hooks/repository.rb', line 6

def last_hook_id
  @last_hook_id
end

#targetObject

Returns the value of attribute target.



6
7
8
# File 'lib/r2-oas/hooks/repository.rb', line 6

def target
  @target
end