Class: OpenHAB::YARD::CodeObjects::GroupObject

Inherits:
YARD::CodeObjects::Base
  • Object
show all
Defined in:
lib/openhab/yard/code_objects/group_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace, name) ⇒ GroupObject

Returns a new instance of GroupObject.



9
10
11
12
13
# File 'lib/openhab/yard/code_objects/group_object.rb', line 9

def initialize(namespace, name)
  @full_name = name
  name = name.delete(%(.?"')).tr(" ", "-")
  super
end

Instance Attribute Details

#full_nameObject (readonly) Also known as: to_s

Returns the value of attribute full_name.



7
8
9
# File 'lib/openhab/yard/code_objects/group_object.rb', line 7

def full_name
  @full_name
end

Instance Method Details

#pathObject



15
16
17
# File 'lib/openhab/yard/code_objects/group_object.rb', line 15

def path
  "group#{sep}#{super}"
end