Class: Manceps::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



46
47
48
49
50
51
52
53
54
# File 'lib/manceps.rb', line 46

def initialize(**)
  super
  self.client_name ||= 'Manceps'
  self.client_version ||= Manceps::VERSION
  self.protocol_version ||= '2025-11-25'
  self.supported_versions ||= %w[2025-11-25 2025-06-18 2025-03-26]
  self.request_timeout ||= 30
  self.connect_timeout ||= 10
end

Instance Attribute Details

#client_descriptionObject

Returns the value of attribute client_description

Returns:

  • (Object)

    the current value of client_description



36
37
38
# File 'lib/manceps.rb', line 36

def client_description
  @client_description
end

#client_nameObject

Returns the value of attribute client_name

Returns:

  • (Object)

    the current value of client_name



36
37
38
# File 'lib/manceps.rb', line 36

def client_name
  @client_name
end

#client_versionObject

Returns the value of attribute client_version

Returns:

  • (Object)

    the current value of client_version



36
37
38
# File 'lib/manceps.rb', line 36

def client_version
  @client_version
end

#connect_timeoutObject

Returns the value of attribute connect_timeout

Returns:

  • (Object)

    the current value of connect_timeout



36
37
38
# File 'lib/manceps.rb', line 36

def connect_timeout
  @connect_timeout
end

#protocol_versionObject

Returns the value of attribute protocol_version

Returns:

  • (Object)

    the current value of protocol_version



36
37
38
# File 'lib/manceps.rb', line 36

def protocol_version
  @protocol_version
end

#request_timeoutObject

Returns the value of attribute request_timeout

Returns:

  • (Object)

    the current value of request_timeout



36
37
38
# File 'lib/manceps.rb', line 36

def request_timeout
  @request_timeout
end

#supported_versionsObject

Returns the value of attribute supported_versions

Returns:

  • (Object)

    the current value of supported_versions



36
37
38
# File 'lib/manceps.rb', line 36

def supported_versions
  @supported_versions
end