Method: ChargeBee::Model#method_missing
- Defined in:
- lib/chargebee/models/model.rb
#method_missing(m, *args, &block) ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'lib/chargebee/models/model.rb', line 48 def method_missing(m, *args, &block) if(@values.has_key?(m)) return @values[m] elsif(m[0,3] == "cf_") # All the custom fields start with prefix cf_. return nil end = "There's no method called #{m} #{args} here -- please try again." raise NoMethodError, end |