Class: SDM::Service
- Inherits:
-
Object
- Object
- SDM::Service
- Defined in:
- lib/models/porcelain.rb
Overview
A Service is a service account that can connect to resources they are granted directly, or granted via roles. Services are typically automated jobs.
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the Service.
-
#name ⇒ Object
Unique human-readable name of the Service.
-
#suspended ⇒ Object
The Service’s suspended state.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, suspended: nil) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(id: nil, name: nil, suspended: nil) ⇒ Service
Returns a new instance of Service.
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/models/porcelain.rb', line 458 def initialize( id:nil \ , name:nil \ , suspended:nil \ ) if id != nil @id = id end if name != nil @name = name end if suspended != nil @suspended = suspended end end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the Service.
453 454 455 |
# File 'lib/models/porcelain.rb', line 453 def id @id end |
#name ⇒ Object
Unique human-readable name of the Service.
455 456 457 |
# File 'lib/models/porcelain.rb', line 455 def name @name end |
#suspended ⇒ Object
The Service’s suspended state.
457 458 459 |
# File 'lib/models/porcelain.rb', line 457 def suspended @suspended end |