Class: OmnifocusMcp::Tools::Params::GetPerspectiveViewParams

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



87
88
89
# File 'lib/omnifocus_mcp/tools/params.rb', line 87

def fields
  @fields
end

#limitObject (readonly)

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



87
88
89
# File 'lib/omnifocus_mcp/tools/params.rb', line 87

def limit
  @limit
end

#perspective_nameObject (readonly)

Returns the value of attribute perspective_name

Returns:

  • (Object)

    the current value of perspective_name



87
88
89
# File 'lib/omnifocus_mcp/tools/params.rb', line 87

def perspective_name
  @perspective_name
end

Class Method Details

.from_hash(hash) ⇒ Object



96
97
98
99
100
101
102
# File 'lib/omnifocus_mcp/tools/params.rb', line 96

def self.from_hash(hash)
  new(
    perspective_name: hash[:perspective_name],
    limit: hash[:limit],
    fields: hash[:fields]
  )
end

.from_mcp(args) ⇒ Object



88
89
90
91
92
93
94
# File 'lib/omnifocus_mcp/tools/params.rb', line 88

def self.from_mcp(args)
  new(
    perspective_name: args[:perspectiveName],
    limit: args[:limit],
    fields: args[:fields]
  )
end