Sha256: 17f4c31dac481f01024d6ae22f63d6fd2987acfef5ece4a3ecd60bc6e0eff24c

Contents?: true

Size: 758 Bytes

Versions: 21

Compression:

Stored size: 758 Bytes

Contents

# frozen_string_literal: true

# example_template.py - This is a template for defining new examples.  It is not intended to be used directly.
#
# <describe what this example does>
#
# In this example, we:
#   - <key step 1>
#   - <key step 2
#   - ...
#
# <describe assumptions about the user's stripe account, environment, or configuration;
# or things to watch out for when running>

require "stripe"
require "date"

class ExampleTemplate
  attr_accessor :api_key

  def initialize(api_key)
    @api_key = api_key
  end

  def do_something_great
    puts "Hello World"
    # client = Stripe::StripeClient.new(api_key)
    # client.v1
  end
end

# Send meter events
api_key = "{{API_KEY}}"

example = ExampleTemplate.new(api_key)
example.do_something_great

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
stripe-13.4.1 examples/example_template.rb
stripe-13.4.0 examples/example_template.rb
stripe-13.4.0.pre.beta.4 examples/example_template.rb
stripe-13.4.0.pre.beta.3 examples/example_template.rb
stripe-13.3.1 examples/example_template.rb
stripe-13.4.0.pre.beta.2 examples/example_template.rb
stripe-13.4.0.pre.beta.1 examples/example_template.rb
stripe-13.3.0 examples/example_template.rb
stripe-13.3.0.pre.beta.3 examples/example_template.rb
stripe-13.3.0.pre.beta.2 examples/example_template.rb
stripe-13.3.0.pre.beta.1 examples/example_template.rb
stripe-13.2.0 examples/example_template.rb
stripe-13.1.2 examples/example_template.rb
stripe-13.2.0.pre.beta.3 examples/example_template.rb
stripe-13.2.0.pre.beta.2 examples/example_template.rb
stripe-13.1.1 examples/example_template.rb
stripe-13.2.0.pre.beta.1 examples/example_template.rb
stripe-13.1.0 examples/example_template.rb
stripe-13.0.2 examples/example_template.rb
stripe-13.1.0.pre.beta.3 examples/example_template.rb