Shopify: how to retrive shipping and payment methods using shopify_api ruby?

I have built a shopify app using shopify_api generation and I'm able to create products. Now I want to list shipping methods and payment methods. Is there any possibility to achieve this? Please help me we are stick in that. We are trying to build an app like Advance Cash On Delivery app. Thanks in advance.