Sha256: fe37b300c45af7aa1f596557d69b416df2081282621c74f0f7c773ac2615db40

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

module Finix
  # Your User is equivalent to an API Key and is used to authenticate when
  # performing operations on the Finix API.

  class User
    include Finix::Resource
    include Finix::HypermediaRegistry

    define_hypermedia_types [:users]

    def create_application(attrs = {})
      attrs = attrs.attributes if attrs.is_a?(Finix::Resource)
      self.applications.create(attrs)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finix-1.0.1 lib/finix/resources/user.rb
finix-1.0.0 lib/finix/resources/user.rb