Class: Svix::AdobeSignConfig
- Inherits:
-
Object
- Object
- Svix::AdobeSignConfig
- Defined in:
- lib/svix/models/adobe_sign_config.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AdobeSignConfig
constructor
A new instance of AdobeSignConfig.
- #serialize ⇒ Object
-
#to_json ⇒ Object
Serializes the object to a json string.
Constructor Details
#initialize(attributes = {}) ⇒ AdobeSignConfig
Returns a new instance of AdobeSignConfig.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/svix/models/adobe_sign_config.rb', line 12 def initialize(attributes = {}) unless attributes.is_a?(Hash) fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::AdobeSignConfig` new method") end attributes.each do |k, v| unless ALL_FIELD.include?(k.to_s) fail(ArgumentError, "The field #{k} is not part of Svix::AdobeSignConfig") end instance_variable_set("@#{k}", v) instance_variable_set("@__#{k}_is_defined", true) end end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
7 8 9 |
# File 'lib/svix/models/adobe_sign_config.rb', line 7 def client_id @client_id end |
Class Method Details
.deserialize(attributes = {}) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/svix/models/adobe_sign_config.rb', line 27 def self.deserialize(attributes = {}) attributes = attributes.transform_keys(&:to_s) attrs = Hash.new attrs["client_id"] = attributes["clientId"] new(attrs) end |
Instance Method Details
#serialize ⇒ Object
34 35 36 37 38 |
# File 'lib/svix/models/adobe_sign_config.rb', line 34 def serialize out = Hash.new out["clientId"] = Svix::serialize_primitive(@client_id) if @client_id out end |
#to_json ⇒ Object
Serializes the object to a json string
42 43 44 |
# File 'lib/svix/models/adobe_sign_config.rb', line 42 def to_json JSON.dump(serialize) end |