Class: Tuya::ConfigGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/tuya/cli/odm/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ConfigGroup

Returns a new instance of ConfigGroup.



87
88
89
90
91
92
# File 'lib/tuya/cli/odm/config.rb', line 87

def initialize(name)
  @name = name

  @spec = "#{name}Specs"
  @url = "#{Tuya::TUYA_ODM_GITLAB_HOST}/#{name}/#{@spec}.git"
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



84
85
86
# File 'lib/tuya/cli/odm/config.rb', line 84

def name
  @name
end

#specObject

Returns the value of attribute spec.



85
86
87
# File 'lib/tuya/cli/odm/config.rb', line 85

def spec
  @spec
end

#urlObject

Returns the value of attribute url.



86
87
88
# File 'lib/tuya/cli/odm/config.rb', line 86

def url
  @url
end