Class: Google::Apis::ClassroomV1::Feed

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

A class of notifications that an application can register to receive. For example: "all roster changes for a domain".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Feed

Returns a new instance of Feed.



1173
1174
1175
# File 'lib/google/apis/classroom_v1/classes.rb', line 1173

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

Instance Attribute Details

#course_roster_changes_infoGoogle::Apis::ClassroomV1::CourseRosterChangesInfo

Information about a Feed with a feed_type of COURSE_ROSTER_CHANGES. Corresponds to the JSON property courseRosterChangesInfo



1161
1162
1163
# File 'lib/google/apis/classroom_v1/classes.rb', line 1161

def course_roster_changes_info
  @course_roster_changes_info
end

#course_work_changes_infoGoogle::Apis::ClassroomV1::CourseWorkChangesInfo

Information about a Feed with a feed_type of COURSE_WORK_CHANGES. Corresponds to the JSON property courseWorkChangesInfo



1166
1167
1168
# File 'lib/google/apis/classroom_v1/classes.rb', line 1166

def course_work_changes_info
  @course_work_changes_info
end

#feed_typeString

The type of feed. Corresponds to the JSON property feedType

Returns:

  • (String)


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

def feed_type
  @feed_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1178
1179
1180
1181
1182
# File 'lib/google/apis/classroom_v1/classes.rb', line 1178

def update!(**args)
  @course_roster_changes_info = args[:course_roster_changes_info] if args.key?(:course_roster_changes_info)
  @course_work_changes_info = args[:course_work_changes_info] if args.key?(:course_work_changes_info)
  @feed_type = args[:feed_type] if args.key?(:feed_type)
end