Class: CFC::APITokenPolicy
- Defined in:
- lib/cfc/objects/api_token_policy.rb
Class Method Summary collapse
Methods inherited from APIObject
#initialize, #inspect, #method_missing, opts, relationship, #respond_to_missing?, #to_h, #to_json
Constructor Details
This class inherits a constructor from CFC::APIObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CFC::APIObject
Class Method Details
.build(effect:, resources:, permission_groups:) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/cfc/objects/api_token_policy.rb', line 9 def self.build(effect:, resources:, permission_groups:) new(JSON.parse(JSON.dump({ effect: effect, resources: resources&.transform_keys(&:to_json), permission_groups: }.compact))) end |