Class: Increase::Models::AccountTransfer::CreatedBy

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/account_transfer.rb

Defined Under Namespace

Classes: APIKey, OAuthApplication, User

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#api_keyIncrease::Models::AccountTransfer::CreatedBy::APIKey

If present, details about the API key that created the transfer.



119
# File 'lib/increase/models/account_transfer.rb', line 119

required :api_key, -> { Increase::Models::AccountTransfer::CreatedBy::APIKey }

#categorySymbol

The type of object that created this transfer.

Returns:

  • (Symbol)


124
# File 'lib/increase/models/account_transfer.rb', line 124

required :category, Increase::Enum.new(:api_key, :oauth_application, :user)

#oauth_applicationIncrease::Models::AccountTransfer::CreatedBy::OAuthApplication

If present, details about the OAuth Application that created the transfer.



129
# File 'lib/increase/models/account_transfer.rb', line 129

required :oauth_application, -> { Increase::Models::AccountTransfer::CreatedBy::OAuthApplication }

#userIncrease::Models::AccountTransfer::CreatedBy::User

If present, details about the User that created the transfer.



134
# File 'lib/increase/models/account_transfer.rb', line 134

required :user, -> { Increase::Models::AccountTransfer::CreatedBy::User }