Sha256: 5e8daf27fd3df4d9fdabbd155f4ea60ef80978b477e1107a161a83d78f2222da
Contents?: true
Size: 340 Bytes
Versions: 1
Compression:
Stored size: 340 Bytes
Contents
module Espago class ApiConnection class GetPlans def initialize(connection) @connection = connection end def request(params = {}) if params[:plan_id] @connection.get "plans/#{params[:plan_id]}" else @connection.get "plans", params end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
espago-0.0.7 | lib/espago/api_connection/get_plans.rb |