Sha256: 2d62ee469a05d303c1a5e88a1b4e398142021b3bfff6d6ac3fbaab6777d8e58b
Contents?: true
Size: 476 Bytes
Versions: 44
Compression:
Stored size: 476 Bytes
Contents
module MxHero::API class Account < Struct.new(:account, :domain, :created_date, :updated_date, :group) def initialize(elements) elements.each { |prop, value| send("#{prop}=", value) if respond_to?("#{prop}") } end def to_json { account: account, domain: domain, createdDate: created_date, updatedDate: updated_date, group: group }.to_json end def to_s "account: #{account}, domain: #{domain}, group: #{group}" end end end
Version data entries
44 entries across 44 versions & 1 rubygems