Method: Claws::EC2::Presenter#method_missing
- Defined in:
- lib/claws/presenter/ec2.rb
#method_missing(meth) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/claws/presenter/ec2.rb', line 32 def method_missing(meth) case meth when :name @ec2.send(:tags)['Name'] || 'N/A' when @ec2.try(:tags) && @ec2..has_key?(meth) @ec2.[meth] || 'N/A' else begin @ec2.send(meth) rescue Exception 'N/A' end end end |