Sha256: 83543edc80eddc756a8eb49c1a97674bb100be202553a9e2a6cac84f0363905e
Contents?: true
Size: 830 Bytes
Versions: 5
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true module RemoveBg class AccountInfo # @return [RemoveBg::AccountInfo::ApiInfo] attr_reader :api # @return [RemoveBg::AccountInfo::CreditsInfo] attr_reader :credits def initialize(attributes) @api = ApiInfo.new(**attributes.fetch(:api)) @credits = CreditsInfo.new(**attributes.fetch(:credits)) end class ApiInfo attr_reader :free_calls, :sizes def initialize(free_calls:, sizes:) @free_calls = free_calls @sizes = sizes end end class CreditsInfo attr_reader :total, :subscription, :payg, :enterprise def initialize(total:, subscription:, payg:, enterprise:) @total = total @subscription = subscription @payg = payg @enterprise = enterprise end end end end
Version data entries
5 entries across 5 versions & 1 rubygems