Method: PolylinkApi::Helper.get_did_dids_from_string

Defined in:
lib/polylink_api/helper.rb

.get_did_dids_from_string(string) ⇒ Object



217
218
219
220
221
222
223
224
225
226
227
# File 'lib/polylink_api/helper.rb', line 217

def self.get_did_dids_from_string(string)
  did_dids_list = []
  string.split(';').each do |item|
    did_did = {}
    attributes = item.split(',')
    did_did[:did] = attributes[0]
    did_did[:default_did] = attributes[1]
    did_dids_list << did_did
  end
  return did_dids_list
end