Class: Socialcast::CommandLine::Message

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/socialcast/command_line/message.rb

Class Method Summary collapse

Class Method Details

.configure_from_credentialsObject



10
11
12
13
14
15
# File 'lib/socialcast/command_line/message.rb', line 10

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