Sha256: e03aca57ff9e5ad08d8d2a5917c2a212bbceab32c9f623b4f5244632de5202ee
Contents?: true
Size: 723 Bytes
Versions: 21
Compression:
Stored size: 723 Bytes
Contents
require 'active_resource' ActiveResource::Base.include_root_in_json = true module Socialcast module CommandLine class Message < ActiveResource::Base headers['Accept'] = 'application/json' def self.configure_from_credentials Socialcast::CommandLine::Message.site = ['https://', Socialcast::CommandLine.credentials[:domain], '/api'].join Socialcast::CommandLine::Message.proxy = Socialcast::CommandLine.credentials[:proxy] if Socialcast::CommandLine.credentials[:proxy] Socialcast::CommandLine::Message.user = Socialcast::CommandLine.credentials[:user] Socialcast::CommandLine::Message.password = Socialcast::CommandLine.credentials[:password] end end end end
Version data entries
21 entries across 21 versions & 1 rubygems