Sha256: 91a777a057eb5985d06e7535c03c89285de6d1be8c51fe18971ac5323b3b9d01
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
require 'bc3client' require "net/http" require "uri" require "bc3client/resource" require "json" module Bc3client class Basecamp < Resource def initialize(*args) args = args.flatten(1) unless !args[0].is_a?(Array) super(args) end def all get build_uri basecamps_path end def find_by_id(id) get build_uri basecamp_path(id) end private def basecamps_path "/#{@account_id}/projects.json" end def basecamp_path(id) "/#{@account_id}/projects/#{id}.json" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bc3client-0.1.0 | lib/bc3client/basecamp.rb |