forked from codehbs/hacking-groupme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses.rb
More file actions
27 lines (24 loc) · 682 Bytes
/
classes.rb
File metadata and controls
27 lines (24 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Message
attr_accessor :id,:source_guid,:created_at,:user_id,:group_id,:avatar_url,:name,:text,:system,:picture_url,:location,:favorited_by
def initialize(args={})
@id = args[:id]
@source_guid = args[:source_guid]
@created_at = args[:created_at]
@user_id = args[:user_id]
@group_id = args[:group_id]
@avatar_url = args[:avatar_url]
@name = args[:name]
@text = args[:text]
@system = args[:system]
@picture_url = args[:picture_url]
@location = args[:location]
@favorited_by = args[:favorited_by]
end
end
class Member
attr_accessor :id,:name
def initialize(args={})
@id = args[:id]
@name = args[:name]
end
end