Class: Cadenya::Types::ToolSetAdapter_HttpVariant
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_HttpVariant
- 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) ⇒ ToolSetAdapter_HttpVariant
constructor
A new instance of ToolSetAdapter_HttpVariant.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, http: nil) ⇒ ToolSetAdapter_HttpVariant
Returns a new instance of ToolSetAdapter_HttpVariant.
7970 7971 7972 7973 |
# File 'lib/cadenya/types.rb', line 7970 def initialize(type: nil, http: nil) @type = type @http = http end |
Instance Attribute Details
#http ⇒ Object (readonly)
Returns the value of attribute http.
7968 7969 7970 |
# File 'lib/cadenya/types.rb', line 7968 def http @http end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7968 7969 7970 |
# File 'lib/cadenya/types.rb', line 7968 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7975 7976 7977 7978 7979 7980 |
# File 'lib/cadenya/types.rb', line 7975 def self.from_json(data) new( type: data["type"], http: data["http"].nil? ? nil : Types::ToolSetAdapter_HTTP.from_json(data["http"]), ) end |