Class: Cadenya::Types::ToolSpec_Config_Http
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSpec_Config_Http
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, http: nil) ⇒ ToolSpec_Config_Http
constructor
A new instance of ToolSpec_Config_Http.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, http: nil) ⇒ ToolSpec_Config_Http
Returns a new instance of ToolSpec_Config_Http.
8458 8459 8460 8461 |
# File 'lib/cadenya/types.rb', line 8458 def initialize(type: nil, http: nil) @type = type @http = http end |
Instance Attribute Details
#http ⇒ Object (readonly)
Returns the value of attribute http.
8456 8457 8458 |
# File 'lib/cadenya/types.rb', line 8456 def http @http end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8456 8457 8458 |
# File 'lib/cadenya/types.rb', line 8456 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8463 8464 8465 8466 8467 8468 |
# File 'lib/cadenya/types.rb', line 8463 def self.from_json(data) new( type: data["type"], http: data["http"].nil? ? nil : Types::Config_HTTP.from_json(data["http"]), ) end |