Method: Awspec::Type::Account#method_missing

Defined in:
lib/awspec/type/account.rb

#method_missing(name) ⇒ Object



34
35
36
37
38
39
# File 'lib/awspec/type/account.rb', line 34

def method_missing(name)
  name = name.to_s if name.instance_of?(Symbol)
  describe = name.tr('-', '_').to_sym
  super unless resource_via_client.members.include?(describe)
  resource_via_client[describe]
end