Method: WhiteLabelMachineName::TransactionCommentCreate#initialize
- Defined in:
- lib/whitelabelmachinename-ruby-sdk/models/transaction_comment_create.rb
#initialize(attributes = {}) ⇒ TransactionCommentCreate
Initializes the object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/whitelabelmachinename-ruby-sdk/models/transaction_comment_create.rb', line 47 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'content') self.content = attributes[:'content'] end if attributes.has_key?(:'transaction') self.transaction = attributes[:'transaction'] end end |