Class: Cadenya::Types::ToolSetAdapter_HTTP
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_HTTP
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(base_url: nil, headers: nil) ⇒ ToolSetAdapter_HTTP
constructor
A new instance of ToolSetAdapter_HTTP.
- #to_h ⇒ Object
Constructor Details
#initialize(base_url: nil, headers: nil) ⇒ ToolSetAdapter_HTTP
Returns a new instance of ToolSetAdapter_HTTP.
6037 6038 6039 6040 |
# File 'lib/cadenya/types.rb', line 6037 def initialize(base_url: nil, headers: nil) @base_url = base_url @headers = headers end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
6035 6036 6037 |
# File 'lib/cadenya/types.rb', line 6035 def base_url @base_url end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
6035 6036 6037 |
# File 'lib/cadenya/types.rb', line 6035 def headers @headers end |
Class Method Details
.from_json(data) ⇒ Object
6042 6043 6044 6045 6046 6047 |
# File 'lib/cadenya/types.rb', line 6042 def self.from_json(data) new( base_url: data["baseUrl"], headers: data["headers"], ) end |