Sha256: e0eb9bb6f840aea32bc85b403bac213cc429f16cd352c7c85a25ce4672fb2b67
Contents?: true
Size: 605 Bytes
Versions: 5
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true require_relative './../utils/ss_model' # Root Sourcescrub module Sourcescrub # Apis module Apis # Companies endpoint class Companies include ::Sourcescrub::Utils::SsModel attr_accessor :args def initialize(domain, args) @domain = domain @model_type = args.delete(:model_type) @card_id = args.delete(:card_id) @args = args end def request_url [ Models::Company::ENDPOINT, @domain, @card_id ].compact.join('/') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems