Method: SDM::AccountGrant#initialize

Defined in:
lib/models/porcelain.rb

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

Returns a new instance of AccountGrant.



1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
# File 'lib/models/porcelain.rb', line 1335

def initialize(
  access_rule: nil,
  account_id: nil,
  id: nil,
  resource_id: nil,
  start_from: nil,
  valid_until: nil
)
  @access_rule = access_rule == nil ? SDM::_porcelain_zero_value_access_rule() : access_rule
  @account_id =  == nil ? "" : 
  @id = id == nil ? "" : id
  @resource_id = resource_id == nil ? "" : resource_id
  @start_from = start_from == nil ? nil : start_from
  @valid_until = valid_until == nil ? nil : valid_until
end