Sha256: c6a00e33e78f961df0a8234315ade28cfbd20fbfedb08e3ad6cd764c911d6597

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

require 'active_resource'

ActiveResource::Base.include_root_in_json = true

module Socialcast
  class Message < ActiveResource::Base
    headers['Accept'] = 'application/json'

    def self.configure_from_credentials
      Socialcast::Message.site = ['https://', Socialcast.credentials[:domain], '/api'].join
      Socialcast::Message.proxy = Socialcast.credentials[:proxy] if Socialcast.credentials[:proxy]
      Socialcast::Message.user = Socialcast.credentials[:user]
      Socialcast::Message.password = Socialcast.credentials[:password]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socialcast-1.2.3 lib/socialcast/message.rb
socialcast-1.2.2 lib/socialcast/message.rb