Class: Systemgroup
- Inherits:
-
Object
- Object
- Systemgroup
- Defined in:
- lib/satops/operator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #create(sat) ⇒ Object
- #delete(sat) ⇒ Object
-
#initialize(sysgroup) ⇒ Systemgroup
constructor
A new instance of Systemgroup.
- #update(sat) ⇒ Object
Constructor Details
#initialize(sysgroup) ⇒ Systemgroup
Returns a new instance of Systemgroup.
1088 1089 1090 1091 1092 1093 1094 |
# File 'lib/satops/operator.rb', line 1088 def initialize(sysgroup) @id=sysgroup['id'] @name=sysgroup['name'] @description=sysgroup['description'] @org_id=sysgroup['org_id'] @system_count=sysgroup['system_count'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
1086 1087 1088 |
# File 'lib/satops/operator.rb', line 1086 def name @name end |
Instance Method Details
#create(sat) ⇒ Object
1096 1097 1098 |
# File 'lib/satops/operator.rb', line 1096 def create(sat) sat.systemgroup.create(@name, @description) end |
#delete(sat) ⇒ Object
1100 1101 1102 |
# File 'lib/satops/operator.rb', line 1100 def delete(sat) sat.systemgroup.delete(@name) end |
#update(sat) ⇒ Object
1104 1105 1106 |
# File 'lib/satops/operator.rb', line 1104 def update(sat) sat.systemgroup.update(@name, @description) end |