Class: Fluther::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/fluther/config.rb

Class Method Summary collapse

Class Method Details

.app_key(*args) ⇒ Object



9
10
11
12
13
# File 'lib/fluther/config.rb', line 9

def self.app_key( *args )
  @@app_key = nil  unless defined? @@app_key
  return @@app_key  if args.empty?
  @@app_key = args.first
end

.fluther_host(*args) ⇒ Object



3
4
5
6
7
# File 'lib/fluther/config.rb', line 3

def self.fluther_host( *args )
  @@fluther_host = nil  unless defined? @@fluther_host
  return @@fluther_host  if args.empty?
  @@fluther_host = args.first
end

.user_fields(*args) ⇒ Object



15
16
17
18
19
# File 'lib/fluther/config.rb', line 15

def self.user_fields( *args )
  @@user_fields = { :id => :id, :name => :name, :email => :email }  unless defined? @@user_fields
  return @@user_fields  if args.empty?
  @@user_fields.update args.first
end