Module: Instamojo::CommonObject::KlassMethods

Defined in:
lib/common_object.rb

Instance Method Summary collapse

Instance Method Details

#detail_method(detail, key) ⇒ Object



47
48
49
50
51
# File 'lib/common_object.rb', line 47

def detail_method(detail, key)
  define_method "detail_helper" do
    [detail, self.send("#{key}")]
  end
end