Class: BeyondApi::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/beyond_api.rb', line 34

def initialize
  @client_id = nil
  @client_secret = nil
  @open_timeout = 2
  @timeout = 5
  @remove_response_links = false
  @remove_response_key_underscores = false
  @object_struct_responses = false
  @raise_error_requests = false

  @log_level = :info
  @log_headers = false
  @log_bodies = false

  @all_pagination_size = 200
end

Instance Attribute Details

#all_pagination_sizeObject

Returns the value of attribute all_pagination_size.



30
31
32
# File 'lib/beyond_api.rb', line 30

def all_pagination_size
  @all_pagination_size
end

#client_idObject

Returns the value of attribute client_id.



30
31
32
# File 'lib/beyond_api.rb', line 30

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



30
31
32
# File 'lib/beyond_api.rb', line 30

def client_secret
  @client_secret
end

#log_bodiesObject

Returns the value of attribute log_bodies.



30
31
32
# File 'lib/beyond_api.rb', line 30

def log_bodies
  @log_bodies
end

#log_headersObject

Returns the value of attribute log_headers.



30
31
32
# File 'lib/beyond_api.rb', line 30

def log_headers
  @log_headers
end

#log_levelObject

Returns the value of attribute log_level.



30
31
32
# File 'lib/beyond_api.rb', line 30

def log_level
  @log_level
end

#object_struct_responsesObject

Returns the value of attribute object_struct_responses.



30
31
32
# File 'lib/beyond_api.rb', line 30

def object_struct_responses
  @object_struct_responses
end

#open_timeoutObject

Returns the value of attribute open_timeout.



30
31
32
# File 'lib/beyond_api.rb', line 30

def open_timeout
  @open_timeout
end

#raise_error_requestsObject

Returns the value of attribute raise_error_requests.



30
31
32
# File 'lib/beyond_api.rb', line 30

def raise_error_requests
  @raise_error_requests
end

#remove_response_key_underscoresObject

Returns the value of attribute remove_response_key_underscores.



30
31
32
# File 'lib/beyond_api.rb', line 30

def remove_response_key_underscores
  @remove_response_key_underscores
end

Returns the value of attribute remove_response_links.



30
31
32
# File 'lib/beyond_api.rb', line 30

def remove_response_links
  @remove_response_links
end

#timeoutObject

Returns the value of attribute timeout.



30
31
32
# File 'lib/beyond_api.rb', line 30

def timeout
  @timeout
end