Sha256: a08522cafdea9aa8a88f4d34728386ca6d66d840a850eaa4efdfed094408649a

Contents?: true

Size: 232 Bytes

Versions: 4

Compression:

Stored size: 232 Bytes

Contents

module SantanderChile
  module ApiClient
    class Object
      def initialize(attrs)
        self.class::ATTRIBUTES.each { |key, value|
          instance_variable_set("@#{key}", attrs[value])
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
santander_chile-api_client-1.1.1 lib/santander_chile/api_client/models/object.rb
santander_chile-api_client-1.1.0 lib/santander_chile/api_client/models/object.rb
santander_chile-api_client-1.0.0 lib/santander_chile/api_client/models/object.rb
santander_chile-api_client-0.0.2 lib/santander_chile/api_client/models/object.rb