Class: Intelipost::Mash
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Intelipost::Mash
- Defined in:
- lib/intelipost/mash.rb
Instance Method Summary collapse
Instance Method Details
#all_messages ⇒ Object
11 12 13 14 |
# File 'lib/intelipost/mash.rb', line 11 def return unless self.has_key?('messages') self..map(&:text).join(';') end |
#failure? ⇒ Boolean
7 8 9 |
# File 'lib/intelipost/mash.rb', line 7 def failure? !success? end |
#success? ⇒ Boolean
3 4 5 |
# File 'lib/intelipost/mash.rb', line 3 def success? self.has_key?('status') and self.status == 'OK' end |