Sha256: 58b49ea1dca100e8689c3acf2b3867f09727125b2d8f9a19a78e551b3a1ccbd8

Contents?: true

Size: 468 Bytes

Versions: 7

Compression:

Stored size: 468 Bytes

Contents

require 'active_resource'

module Socialcast
  class Message < ActiveResource::Base
    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

7 entries across 7 versions & 1 rubygems

Version Path
socialcast-1.2.0 lib/socialcast/message.rb
socialcast-1.1.6 lib/socialcast/message.rb
socialcast-1.1.5 lib/socialcast/message.rb
socialcast-1.1.4 lib/socialcast/message.rb
socialcast-1.1.3 lib/socialcast/message.rb
socialcast-1.1.2 lib/socialcast/message.rb
socialcast-1.1.1 lib/socialcast/message.rb