Class: SystemCustominfo
- Inherits:
-
Object
- Object
- SystemCustominfo
- Defined in:
- lib/satops/operator.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
- #create(sat) ⇒ Object
- #delete(sat) ⇒ Object
-
#initialize(system) ⇒ SystemCustominfo
constructor
A new instance of SystemCustominfo.
- #update(sat) ⇒ Object
Constructor Details
#initialize(system) ⇒ SystemCustominfo
Returns a new instance of SystemCustominfo.
1050 1051 1052 1053 1054 1055 1056 |
# File 'lib/satops/operator.rb', line 1050 def initialize(system) @id=system['id'] @label=system['label'] @description=system['description'] @last_modified=system['last_modified'] @system_count=system['system_count'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
1048 1049 1050 |
# File 'lib/satops/operator.rb', line 1048 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
1048 1049 1050 |
# File 'lib/satops/operator.rb', line 1048 def label @label end |
Instance Method Details
#create(sat) ⇒ Object
1062 1063 1064 |
# File 'lib/satops/operator.rb', line 1062 def create(sat) sat.systemCustominfo.createKey(@label, @description) end |
#delete(sat) ⇒ Object
1058 1059 1060 |
# File 'lib/satops/operator.rb', line 1058 def delete(sat) sat.systemCustominfo.deleteKey(@label) end |
#update(sat) ⇒ Object
1066 1067 1068 |
# File 'lib/satops/operator.rb', line 1066 def update(sat) sat.systemCustominfo.updateKey(@label, @description) end |