lib/beaconpush.rb in beaconpush-0.0.1 vs lib/beaconpush.rb in beaconpush-0.0.2
- old
+ new
@@ -6,11 +6,11 @@
require "beaconpush/response_error"
module Beaconpush
class << self
extend Forwardable
- attr_accessor :api_key, :secret_key
+ attr_accessor :key, :secret
attr_writer :version, :host, :port
def_delegators :client, :users_count, :user_online?, :user_logout, :user_message, :channel_message, :channel_users
def host
@host ||= "beaconpush.com"
@@ -23,9 +23,9 @@
def version
@version ||= "1.0.0"
end
def client
- @client ||= Client.new(:api_key => api_key, :secret_key => secret_key, :version => version, :host => host, :port => port)
+ @client ||= Client.new(:key => key, :secret => secret, :version => version, :host => host, :port => port)
end
end
end