Class: HolePunch::Service

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#groupsObject

Returns the value of attribute groups.



23
24
25
# File 'lib/holepunch/definition.rb', line 23

def groups
  @groups
end

#idObject

Returns the value of attribute id.



23
24
25
# File 'lib/holepunch/definition.rb', line 23

def id
  @id
end