Use HTTParty methods in a subclass
- by cpjolicoeur
I'm trying to write an API wrapper in ruby and am stumped on how I can call HTTParty methods from a subclass.
For instance, I want the user to create a connection to the api and then be able to query results from subclasses.
module ApiWrapper
class Connection
include HTTParty
base_uri '...'
def initialize( u, p )
…