Class: Increase::Resources::DigitalCardProfiles
- Inherits:
-
Object
- Object
- Increase::Resources::DigitalCardProfiles
- Defined in:
- lib/increase/resources/digital_card_profiles.rb
Instance Method Summary collapse
-
#archive(digital_card_profile_id, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Archive a Digital Card Profile.
-
#clone(digital_card_profile_id, params = {}, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Clones a Digital Card Profile.
-
#create(params = {}, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Create a Digital Card Profile.
-
#initialize(client:) ⇒ DigitalCardProfiles
constructor
A new instance of DigitalCardProfiles.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::DigitalCardProfile>
List Card Profiles.
-
#retrieve(digital_card_profile_id, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Retrieve a Digital Card Profile.
Constructor Details
#initialize(client:) ⇒ DigitalCardProfiles
Returns a new instance of DigitalCardProfiles.
6 7 8 |
# File 'lib/increase/resources/digital_card_profiles.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#archive(digital_card_profile_id, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Archive a Digital Card Profile
80 81 82 83 84 85 86 |
# File 'lib/increase/resources/digital_card_profiles.rb', line 80 def archive(digital_card_profile_id, opts = {}) req = {} req[:method] = :post req[:path] = "/digital_card_profiles/#{digital_card_profile_id}/archive" req[:model] = Increase::Models::DigitalCardProfile @client.request(req, opts) end |
#clone(digital_card_profile_id, params = {}, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Clones a Digital Card Profile
106 107 108 109 110 111 112 113 |
# File 'lib/increase/resources/digital_card_profiles.rb', line 106 def clone(digital_card_profile_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/digital_card_profiles/#{digital_card_profile_id}/clone" req[:body] = params req[:model] = Increase::Models::DigitalCardProfile @client.request(req, opts) end |
#create(params = {}, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Create a Digital Card Profile
26 27 28 29 30 31 32 33 |
# File 'lib/increase/resources/digital_card_profiles.rb', line 26 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/digital_card_profiles" req[:body] = params req[:model] = Increase::Models::DigitalCardProfile @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::DigitalCardProfile>
List Card Profiles
64 65 66 67 68 69 70 71 72 |
# File 'lib/increase/resources/digital_card_profiles.rb', line 64 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/digital_card_profiles" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::DigitalCardProfile @client.request(req, opts) end |
#retrieve(digital_card_profile_id, opts = {}) ⇒ Increase::Models::DigitalCardProfile
Retrieve a Digital Card Profile
41 42 43 44 45 46 47 |
# File 'lib/increase/resources/digital_card_profiles.rb', line 41 def retrieve(digital_card_profile_id, opts = {}) req = {} req[:method] = :get req[:path] = "/digital_card_profiles/#{digital_card_profile_id}" req[:model] = Increase::Models::DigitalCardProfile @client.request(req, opts) end |