Class: Google::Apis::ClassroomV1::Guardian

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb

Overview

Association between a student and a guardian of that student. The guardian may receive information about the student's course work.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Guardian

Returns a new instance of Guardian



769
770
771
# File 'generated/google/apis/classroom_v1/classes.rb', line 769

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#guardian_idString

Identifier for the guardian. Corresponds to the JSON property guardianId

Returns:

  • (String)


756
757
758
# File 'generated/google/apis/classroom_v1/classes.rb', line 756

def guardian_id
  @guardian_id
end

#guardian_profileGoogle::Apis::ClassroomV1::UserProfile

Global information for a user. Corresponds to the JSON property guardianProfile



767
768
769
# File 'generated/google/apis/classroom_v1/classes.rb', line 767

def guardian_profile
  @guardian_profile
end

#invited_email_addressString

The email address to which the initial guardian invitation was sent. This field is only visible to domain administrators. Corresponds to the JSON property invitedEmailAddress

Returns:

  • (String)


762
763
764
# File 'generated/google/apis/classroom_v1/classes.rb', line 762

def invited_email_address
  @invited_email_address
end

#student_idString

Identifier for the student to whom the guardian relationship applies. Corresponds to the JSON property studentId

Returns:

  • (String)


751
752
753
# File 'generated/google/apis/classroom_v1/classes.rb', line 751

def student_id
  @student_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



774
775
776
777
778
779
# File 'generated/google/apis/classroom_v1/classes.rb', line 774

def update!(**args)
  @student_id = args[:student_id] if args.key?(:student_id)
  @guardian_id = args[:guardian_id] if args.key?(:guardian_id)
  @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
  @guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
end