fb_page_api 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c06efeb097f935b89a6afa536ad53664fbd7ab3
4
- data.tar.gz: 73e9f993b4866058d5fb438ddb6115df12c29144
3
+ metadata.gz: 2fd7f60fb1b3be4d122992f3dbb50efebdd9c246
4
+ data.tar.gz: 5213e5e160ef93900717cfce95b5f3f729cbd4e1
5
5
  SHA512:
6
- metadata.gz: c5f07d486cf12951e2b048a5ee5d01cc47c88b5374cbbbcc90e4dabaca02017d6b5b90f52dcc630e2bbb0b418e318fc8ab268fd2c644677ab2b5de33cefc671a
7
- data.tar.gz: 7d072576a8e430332d900f5dbd065bf1956ec57379e708c3d17ecec533646883267fab14a38c47198cf2d2b2cd807758fa8f30a54d0c2660732515ccbcc4ef75
6
+ metadata.gz: 0a6919c73b01d2dacd2b9a48938835ac015879519efbe4a0bbfaa93b31476ae404d9bb3f2eeaa3e2a72b7c4b0992ec1621ae7b57984c48f9cb0ee6b0e53117db
7
+ data.tar.gz: 7bc8bd2bfdbcd33f534ec42ffe377a5d93809aaa536e8d20ce46a0e18f2d404409037efa5adfe790bed7de0f68a6927800c6675415817b02c77c0f3910b57796
data/lib/fb_page_api.rb CHANGED
@@ -26,4 +26,8 @@ module FbPageApi
26
26
  def users
27
27
  FbPageApi::Edge::User.new
28
28
  end
29
+
30
+ def messages(conversation_id)
31
+ FbPageApi::Edge::Message.new(conversation_id)
32
+ end
29
33
  end
@@ -3,3 +3,4 @@ require "fb_page_api/edge/admin_label"
3
3
  require "fb_page_api/edge/admin_note"
4
4
  require "fb_page_api/edge/conversation"
5
5
  require "fb_page_api/edge/user"
6
+ require "fb_page_api/edge/message"
@@ -0,0 +1,13 @@
1
+ module FbPageApi
2
+ module Edge
3
+ class Message < Base
4
+ def edge_name
5
+ 'messages'
6
+ end
7
+
8
+ def request_fields
9
+ ['from', 'id', 'to']
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module FbPageApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_page_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tuan Mai
@@ -104,6 +104,7 @@ files:
104
104
  - lib/fb_page_api/edge/all.rb
105
105
  - lib/fb_page_api/edge/base.rb
106
106
  - lib/fb_page_api/edge/conversation.rb
107
+ - lib/fb_page_api/edge/message.rb
107
108
  - lib/fb_page_api/edge/user.rb
108
109
  - lib/fb_page_api/version.rb
109
110
  homepage: http://github.com/tuanmai/fb_page_api