Class: HolePunch::Service
- Inherits:
-
Object
- Object
- HolePunch::Service
- Defined in:
- lib/holepunch/definition.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(id) ⇒ Service
Returns a new instance of Service.
25 26 27 28 |
# File 'lib/holepunch/definition.rb', line 25 def initialize(id) @id = id @groups = [] end |
Instance Attribute Details
#groups ⇒ Object
Returns the value of attribute groups.
23 24 25 |
# File 'lib/holepunch/definition.rb', line 23 def groups @groups end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/holepunch/definition.rb', line 23 def id @id end |