Class: Fifthgear::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/fifthgear/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
# File 'lib/fifthgear/configuration.rb', line 7

def initialize
  defaults = load_defaults
  @api_root = defaults[:api_root]
  @api_version = defaults[:api_version]
  @content_type = defaults[:content_type]
  @debug = false
end

Instance Attribute Details

#api_rootObject

Returns the value of attribute api_root.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def api_root
  @api_root
end

#api_versionObject

Returns the value of attribute api_version.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def api_version
  @api_version
end

#company_idObject

Returns the value of attribute company_id.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def company_id
  @company_id
end

#content_typeObject

Returns the value of attribute content_type.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def content_type
  @content_type
end

#debugObject

Returns the value of attribute debug.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def debug
  @debug
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def password
  @password
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/fifthgear/configuration.rb', line 5

def username
  @username
end