Class: Rito::Shard::Incident

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/shard/incident.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 = {}) ⇒ Incident

Returns a new instance of Incident


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

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

Instance Attribute Details

#activeObject

Returns the value of attribute active


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

def active
  @active
end

#created_atObject

Returns the value of attribute created_at


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

def created_at
  @created_at
end

#idObject

Returns the value of attribute id


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

def id
  @id
end

#updatesObject

Returns the value of attribute updates


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

def updates
  @updates
end