Class: GroupMe::Client

Inherits:
Object
  • Object
show all
Includes:
Bots, Groups, Likes, Members, Messages, Users
Defined in:
lib/groupme/client.rb

Instance Method Summary collapse

Methods included from Likes

#create_like, #destroy_like

Methods included from Users

#me

Methods included from Messages

#create_message, #messages, #messages_count

Methods included from Bots

#bot_post, #bots, #create_bot, #destroy_bot

Methods included from Members

#add_member, #add_members, #membership_results, #remove_member

Methods included from Groups

#create_group, #destroy_group, #former_groups, #group, #groups, #join_group, #update_group

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.


11
12
13
14
# File 'lib/groupme/client.rb', line 11

def initialize(options = {})
  @token = options[:token].to_s
  fail ArgumentError, ":token can't be blank" if @token.empty?
end