Sha256: 43683506b69d7f376f6dfdb26c214c66cb76b766a87e1c13c4061f29b0ebd15d
Contents?: true
Size: 563 Bytes
Versions: 5
Compression:
Stored size: 563 Bytes
Contents
require 'active_model' module ECMBlockchain class Member include ActiveModel::Validations attr_accessor :uuid, :organisation, :custom_attributes, :certificate validates :uuid, presence: true validates :organisation, :certificate, presence: true def initialize(data={}) @uuid = data.fetch(:uuid) @organisation = data.fetch(:organisation) @certificate = data.fetch(:certificate) @custom_attributes = data[:customAttributes].map do |attr| ECMBlockchain::CustomAttribute.new(attr) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems