Method: SDM::User#initialize

Defined in:
lib/models/porcelain.rb

#initialize(id: nil, email: nil, first_name: nil, last_name: nil, suspended: nil, tags: nil) ⇒ User

Returns a new instance of User.



572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
# File 'lib/models/porcelain.rb', line 572

def initialize(
  id: nil,
  email: nil,
  first_name: nil,
  last_name: nil,
  suspended: nil,
  tags: nil
)
  if id != nil
    @id = id
  end
  if email != nil
    @email = email
  end
  if first_name != nil
    @first_name = first_name
  end
  if last_name != nil
    @last_name = last_name
  end
  if suspended != nil
    @suspended = suspended
  end
  if tags != nil
    @tags = tags
  end
end