Method: TripletexRubyClient::ReportAccess#initialize

Defined in:
lib/tripletex_ruby_client/models/report_access.rb

#initialize(attributes = {}) ⇒ ReportAccess

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/tripletex_ruby_client/models/report_access.rb', line 68

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?(:'report')
    self.report = attributes[:'report']
  end

  if attributes.has_key?(:'grant')
    self.grant = attributes[:'grant']
  end

  if attributes.has_key?(:'reason')
    self.reason = attributes[:'reason']
  end
end