Class: PactBroker::Client::Notice

Inherits:
Hash
  • Object
show all
Defined in:
lib/pact_broker/client/matrix/resource.rb

Instance Method Summary collapse

Methods inherited from Hash

#compact, #compact!, #except

Constructor Details

#initialize(hash) ⇒ Notice

Returns a new instance of Notice.



6
7
8
# File 'lib/pact_broker/client/matrix/resource.rb', line 6

def initialize(hash)
  self.merge!(hash)
end

Instance Method Details

#textObject



10
11
12
# File 'lib/pact_broker/client/matrix/resource.rb', line 10

def text
  self[:text]
end

#typeObject



14
15
16
# File 'lib/pact_broker/client/matrix/resource.rb', line 14

def type
  self[:type]
end