Class: Rito::Shard::Service

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/shard/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiBase

#attributes=, call_api, from_list, from_map, from_map_of_lists

Constructor Details

#initialize(attributes = {}) ⇒ Service


5
6
7
8
# File 'lib/rito/shard/service.rb', line 5

def initialize(attributes = {})
	self.incidents = Rito::Shard::Incident.from_list(attributes.delete('incidents')) if attributes['incidents']
	super
end

Instance Attribute Details

#incidentsObject

Returns the value of attribute incidents


3
4
5
# File 'lib/rito/shard/service.rb', line 3

def incidents
  @incidents
end

#nameObject

Returns the value of attribute name


3
4
5
# File 'lib/rito/shard/service.rb', line 3

def name
  @name
end

#slugObject

Returns the value of attribute slug


3
4
5
# File 'lib/rito/shard/service.rb', line 3

def slug
  @slug
end

#statusObject

Returns the value of attribute status


3
4
5
# File 'lib/rito/shard/service.rb', line 3

def status
  @status
end