Class: Tuya::ConfigGroup
- Inherits:
-
Object
- Object
- Tuya::ConfigGroup
- Defined in:
- lib/tuya/cli/odm/config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#spec ⇒ Object
Returns the value of attribute spec.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name) ⇒ ConfigGroup
constructor
A new instance of ConfigGroup.
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
#name ⇒ Object
Returns the value of attribute name.
84 85 86 |
# File 'lib/tuya/cli/odm/config.rb', line 84 def name @name end |
#spec ⇒ Object
Returns the value of attribute spec.
85 86 87 |
# File 'lib/tuya/cli/odm/config.rb', line 85 def spec @spec end |
#url ⇒ Object
Returns the value of attribute url.
86 87 88 |
# File 'lib/tuya/cli/odm/config.rb', line 86 def url @url end |