Class: OmnifocusMcp::Tools::Params::ListPerspectivesParams
- Inherits:
-
Data
- Object
- Data
- OmnifocusMcp::Tools::Params::ListPerspectivesParams
- Defined in:
- lib/omnifocus_mcp/tools/params.rb
Instance Attribute Summary collapse
-
#include_built_in ⇒ Object
readonly
Returns the value of attribute include_built_in.
-
#include_custom ⇒ Object
readonly
Returns the value of attribute include_custom.
Class Method Summary collapse
Instance Attribute Details
#include_built_in ⇒ Object (readonly)
Returns the value of attribute include_built_in
66 67 68 |
# File 'lib/omnifocus_mcp/tools/params.rb', line 66 def include_built_in @include_built_in end |
#include_custom ⇒ Object (readonly)
Returns the value of attribute include_custom
66 67 68 |
# File 'lib/omnifocus_mcp/tools/params.rb', line 66 def include_custom @include_custom end |
Class Method Details
.from_hash(hash) ⇒ Object
74 75 76 77 78 79 |
# File 'lib/omnifocus_mcp/tools/params.rb', line 74 def self.from_hash(hash) new( include_built_in: hash.fetch(:include_built_in, true), include_custom: hash.fetch(:include_custom, true) ) end |
.from_mcp(args) ⇒ Object
67 68 69 70 71 72 |
# File 'lib/omnifocus_mcp/tools/params.rb', line 67 def self.from_mcp(args) new( include_built_in: args.fetch(:includeBuiltIn, true), include_custom: args.fetch(:includeCustom, true) ) end |