tmkw / yamori

A Salesforce console utility for Ruby programmers
https://tmkw.github.io/yamori/
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Schema の改良 #39

Open tmkw opened 6 days ago

tmkw commented 6 days ago

https://developer.salesforce.com/docs/atlas.ja-jp.api.meta/api/sforce_api_calls_describesobjects_describesobjectresult.htm

ここにSchemaの詳細が書かれており、メソッドとしてもっとわかりやすい名前をつけた方が良いものがある気がする 例:

dataTranslationEnabled  =>  translateable?

他にも、xxxx? 系の述語メソッドのある場合、そもそも

schema.filels.queryable
=>  検索可能な項目名がでてくる

こういうことができていいのではないか。 いちいち述語レベルで書いていられないのでメタプログラミングでやるかと思ったが、スキーマの方からだとメタにできない。なんの述語に対応するメソッドであるかはスキーマ側で明示しなければならないため。