Class: Apicasso::Configuration

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

Overview

This class exposes the settable attributes of the gem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/apicasso/configuration.rb', line 7

def initialize
  @origins = nil
  @headers = nil
  @resource = nil
  @credentials = nil
  @methods = nil
  @max_age = nil
  @expose = nil
  @if = nil
  @vary = nil
  @model_definitions_excluded = []
end

Instance Attribute Details

#credentialsObject

Returns the value of attribute credentials.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def credentials
  @credentials
end

#exposeObject

Returns the value of attribute expose.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def expose
  @expose
end

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def headers
  @headers
end

#ifObject

Returns the value of attribute if.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def if
  @if
end

#max_ageObject

Returns the value of attribute max_age.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def max_age
  @max_age
end

#methodsObject

Returns the value of attribute methods.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def methods
  @methods
end

#model_definitions_excludedObject

Returns the value of attribute model_definitions_excluded.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def model_definitions_excluded
  @model_definitions_excluded
end

#originsObject

Returns the value of attribute origins.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def origins
  @origins
end

#resourceObject

Returns the value of attribute resource.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def resource
  @resource
end

#varyObject

Returns the value of attribute vary.



4
5
6
# File 'lib/apicasso/configuration.rb', line 4

def vary
  @vary
end