Class: R2OAS::Hooks::Repository
- Defined in:
- lib/r2-oas/hooks/repository.rb
Instance Attribute Summary collapse
-
#global_hooks_data ⇒ Object
Returns the value of attribute global_hooks_data.
-
#last_hook_id ⇒ Object
Returns the value of attribute last_hook_id.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ Repository
constructor
A new instance of Repository.
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_data ⇒ Object
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_id ⇒ Object
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 |
#target ⇒ Object
Returns the value of attribute target.
6 7 8 |
# File 'lib/r2-oas/hooks/repository.rb', line 6 def target @target end |