Class: OmnifocusMcp::Tools::Params::ListPerspectivesParams

Inherits:
Data
  • Object
show all
Defined in:
lib/omnifocus_mcp/tools/params.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#include_built_inObject (readonly)

Returns the value of attribute include_built_in

Returns:

  • (Object)

    the current value of include_built_in



66
67
68
# File 'lib/omnifocus_mcp/tools/params.rb', line 66

def include_built_in
  @include_built_in
end

#include_customObject (readonly)

Returns the value of attribute include_custom

Returns:

  • (Object)

    the current value of 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