class Lita::GoogleGroup

A google email group

Attributes

description[R]
email[R]
id[R]
member_count[R]
name[R]

Public Class Methods

from_api(group) click to toggle source
# File lib/lita/google_group.rb, line 6
def self.from_api(group)
  GoogleGroup.new(
    id: group.id,
    email: group.email,
    name: group.name,
    description: group.description,
    member_count: group.direct_members_count,
  )
end
new(id:, email:, name:, member_count:, description:) click to toggle source
# File lib/lita/google_group.rb, line 16
def initialize(id:, email:, name:, member_count:, description:)
  @id, @email, @name, @description = id, email, name, description
  @member_count = member_count.to_i
end

Public Instance Methods

==(other) click to toggle source
# File lib/lita/google_group.rb, line 21
def ==(other)
  @id == other.id && @email == other.email
end
to_s() click to toggle source
# File lib/lita/google_group.rb, line 25
def to_s
  @email
end