Method: SDM::AccountGrant#initialize

Defined in:
lib/models/porcelain.rb

#initialize(id: nil, resource_id: nil, account_id: nil, start_from: nil, valid_until: nil) ⇒ AccountGrant

Returns a new instance of AccountGrant.



385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/models/porcelain.rb', line 385

def initialize(
  id: nil,
  resource_id: nil,
  account_id: nil,
  start_from: nil,
  valid_until: nil
)
  if id != nil
    @id = id
  end
  if resource_id != nil
    @resource_id = resource_id
  end
  if  != nil
    @account_id = 
  end
  if start_from != nil
    @start_from = start_from
  end
  if valid_until != nil
    @valid_until = valid_until
  end
end