class Supersaas::BaseModel
Attributes
attributes[R]
errors[RW]
Public Class Methods
new(attributes)
click to toggle source
# File lib/supersaas-api-client/models/base_model.rb, line 6 def initialize(attributes) @attributes = attributes assign_attributes(attributes) end
Private Instance Methods
assign_attributes(attributes)
click to toggle source
# File lib/supersaas-api-client/models/base_model.rb, line 13 def assign_attributes(attributes) attributes.each do |key, value| public_send("#{key}=", value) if respond_to?("#{key}=") end end