Class: Cadenya::Types::Config_OpenAPI
- Inherits:
-
Object
- Object
- Cadenya::Types::Config_OpenAPI
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path: nil, method: nil) ⇒ Config_OpenAPI
constructor
A new instance of Config_OpenAPI.
- #to_h ⇒ Object
Constructor Details
#initialize(path: nil, method: nil) ⇒ Config_OpenAPI
Returns a new instance of Config_OpenAPI.
1329 1330 1331 1332 |
# File 'lib/cadenya/types.rb', line 1329 def initialize(path: nil, method: nil) @path = path @method = method end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
1327 1328 1329 |
# File 'lib/cadenya/types.rb', line 1327 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
1327 1328 1329 |
# File 'lib/cadenya/types.rb', line 1327 def path @path end |
Class Method Details
.from_json(data) ⇒ Object
1334 1335 1336 1337 1338 1339 |
# File 'lib/cadenya/types.rb', line 1334 def self.from_json(data) new( path: data["path"], method: data["method"], ) end |