Class: Manceps::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Manceps::Configuration
- Defined in:
- lib/manceps.rb
Instance Attribute Summary collapse
-
#client_description ⇒ Object
Returns the value of attribute client_description.
-
#client_name ⇒ Object
Returns the value of attribute client_name.
-
#client_version ⇒ Object
Returns the value of attribute client_version.
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#protocol_version ⇒ Object
Returns the value of attribute protocol_version.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#supported_versions ⇒ Object
Returns the value of attribute supported_versions.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_description ⇒ Object
Returns the value of attribute client_description
36 37 38 |
# File 'lib/manceps.rb', line 36 def client_description @client_description end |
#client_name ⇒ Object
Returns the value of attribute client_name
36 37 38 |
# File 'lib/manceps.rb', line 36 def client_name @client_name end |
#client_version ⇒ Object
Returns the value of attribute client_version
36 37 38 |
# File 'lib/manceps.rb', line 36 def client_version @client_version end |
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout
36 37 38 |
# File 'lib/manceps.rb', line 36 def connect_timeout @connect_timeout end |
#protocol_version ⇒ Object
Returns the value of attribute protocol_version
36 37 38 |
# File 'lib/manceps.rb', line 36 def protocol_version @protocol_version end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout
36 37 38 |
# File 'lib/manceps.rb', line 36 def request_timeout @request_timeout end |
#supported_versions ⇒ Object
Returns the value of attribute supported_versions
36 37 38 |
# File 'lib/manceps.rb', line 36 def supported_versions @supported_versions end |