class StarkBank::Project

# Project object

The Project object is an authentication entity for the SDK that is permanently linked to a specific Workspace. All requests to the Stark Bank API must be authenticated via an SDK user, which must have been previously created at the Stark Bank website

web.sandbox.starkbank.com

or [web.starkbank.com]

before you can use it in this SDK. Projects may be passed as the user parameter on each request or may be defined as the default user at the start (See README).

## Parameters (required):

## Attributes (return-only):

Attributes

allowed_ips[R]
name[R]

Public Class Methods

new(environment:, id:, private_key:, name: '', allowed_ips: nil) click to toggle source
Calls superclass method StarkBank::User::new
# File lib/user/project.rb, line 27
def initialize(environment:, id:, private_key:, name: '', allowed_ips: nil)
  super(environment, id, private_key)
  @name = name
  @allowed_ips = allowed_ips
end

Public Instance Methods

access_id() click to toggle source
# File lib/user/project.rb, line 33
def access_id
  "project/#{@id}"
end