Method: ArtikCloud::NormalizedActionsEnvelope#initialize

Defined in:
lib/artikcloud/models/normalized_actions_envelope.rb

#initialize(attributes = {}) ⇒ NormalizedActionsEnvelope

Initializes the object



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/artikcloud/models/normalized_actions_envelope.rb', line 72

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

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

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

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

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

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

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

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

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

  if attributes.has_key?(:'data')
    if (value = attributes[:'data']).is_a?(Array)
      self.data = value
    end
  end

end