Class: PactBroker::Client::Notice
- Inherits:
-
Hash
- Object
- Hash
- PactBroker::Client::Notice
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
#text ⇒ Object
10
11
12
|
# File 'lib/pact_broker/client/matrix/resource.rb', line 10
def text
self[:text]
end
|
#type ⇒ Object
14
15
16
|
# File 'lib/pact_broker/client/matrix/resource.rb', line 14
def type
self[:type]
end
|