diff --git a/lib/ansible_tower_client/base_model.rb b/lib/ansible_tower_client/base_model.rb index 121b894..25adc27 100644 --- a/lib/ansible_tower_client/base_model.rb +++ b/lib/ansible_tower_client/base_model.rb @@ -10,6 +10,10 @@ def self.endpoint base_class.to_s.split(/::/)[1].tableize.to_s.freeze end + def method_missing(m, *args, &block) + self.class.send(:convert_value, m, args, self) + end + # Constructs and returns a new JSON wrapper class. Pass in a plain # JSON string and it will automatically give you accessor methods # that make it behave like a typical Ruby object. You may also pass