Sha256: 4a28b247a0e4021f40f4e72859a223c26befadac6cd8488ad560b6a38b1452a9
Contents?: true
Size: 487 Bytes
Versions: 4
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module TwilioBase module Fake module Chat class Member Member = Struct.new(:attributes) do def identity JSON.parse(attributes)['identity'] end end cattr_accessor :members self.members = [] def create(attributes) self.class.members << Member.new(attributes) self end def list members end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems