Class: Google::Apis::ClassroomV1::GuardianInvitation

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

Overview

An invitation to become the guardian of a specified user, sent to a specified email address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GuardianInvitation

Returns a new instance of GuardianInvitation.



1193
1194
1195
# File 'lib/google/apis/classroom_v1/classes.rb', line 1193

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

Instance Attribute Details

#creation_timeString

The time that this invitation was created. Read-only. Corresponds to the JSON property creationTime

Returns:

  • (String)


1170
1171
1172
# File 'lib/google/apis/classroom_v1/classes.rb', line 1170

def creation_time
  @creation_time
end

#invitation_idString

Unique identifier for this invitation. Read-only. Corresponds to the JSON property invitationId

Returns:

  • (String)


1175
1176
1177
# File 'lib/google/apis/classroom_v1/classes.rb', line 1175

def invitation_id
  @invitation_id
end

#invited_email_addressString

Email address that the invitation was sent to. This field is only visible to domain administrators. Corresponds to the JSON property invitedEmailAddress

Returns:

  • (String)


1181
1182
1183
# File 'lib/google/apis/classroom_v1/classes.rb', line 1181

def invited_email_address
  @invited_email_address
end

#stateString

The state that this invitation is in. Corresponds to the JSON property state

Returns:

  • (String)


1186
1187
1188
# File 'lib/google/apis/classroom_v1/classes.rb', line 1186

def state
  @state
end

#student_idString

ID of the student (in standard format) Corresponds to the JSON property studentId

Returns:

  • (String)


1191
1192
1193
# File 'lib/google/apis/classroom_v1/classes.rb', line 1191

def student_id
  @student_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1198
1199
1200
1201
1202
1203
1204
# File 'lib/google/apis/classroom_v1/classes.rb', line 1198

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
  @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
  @state = args[:state] if args.key?(:state)
  @student_id = args[:student_id] if args.key?(:student_id)
end