Class: SDM::Service

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject

Unique identifier of the Service.



453
454
455
# File 'lib/models/porcelain.rb', line 453

def id
  @id
end

#nameObject

Unique human-readable name of the Service.



455
456
457
# File 'lib/models/porcelain.rb', line 455

def name
  @name
end

#suspendedObject

The Service’s suspended state.



457
458
459
# File 'lib/models/porcelain.rb', line 457

def suspended
  @suspended
end