Module: FbPageApi

Extended by:
FbPageApi
Included in:
FbPageApi
Defined in:
lib/fb_page_api.rb,
lib/fb_page_api/config.rb,
lib/fb_page_api/version.rb,
lib/fb_page_api/edge/base.rb,
lib/fb_page_api/edge/user.rb,
lib/fb_page_api/edge/message.rb,
lib/fb_page_api/edge/admin_note.rb,
lib/fb_page_api/edge/label_user.rb,
lib/fb_page_api/edge/admin_label.rb,
lib/fb_page_api/edge/conversation.rb

Defined Under Namespace

Modules: Config, Edge

Constant Summary collapse

VERSION =
"0.0.10"

Instance Method Summary collapse

Instance Method Details

#admin_notes(options = {}) ⇒ Object



18
19
20
# File 'lib/fb_page_api.rb', line 18

def admin_notes(options = {})
  FbPageApi::Edge::AdminNote.new(options)
end

#configure {|FbPageApi::Config| ... } ⇒ Object

Yields:



9
10
11
12
# File 'lib/fb_page_api.rb', line 9

def configure
  yield(FbPageApi::Config) if block_given?
  FbPageApi::Config
end

#conversations(options = {}) ⇒ Object



22
23
24
# File 'lib/fb_page_api.rb', line 22

def conversations(options = {})
  FbPageApi::Edge::Conversation.new(options)
end

#label_users(label_id, options = {}) ⇒ Object



34
35
36
# File 'lib/fb_page_api.rb', line 34

def label_users(label_id, options = {})
  FbPageApi::Edge::LabelUser.new(options.merge({ parent_id: label_id })) 
end

#labels(options = {}) ⇒ Object



14
15
16
# File 'lib/fb_page_api.rb', line 14

def labels(options = {})
  FbPageApi::Edge::AdminLabel.new(options)
end

#messages(conversation_id, options = {}) ⇒ Object



30
31
32
# File 'lib/fb_page_api.rb', line 30

def messages(conversation_id, options = {})
  FbPageApi::Edge::Message.new(options.merge({ parent_id: conversation_id }))
end

#users(options = {}) ⇒ Object



26
27
28
# File 'lib/fb_page_api.rb', line 26

def users(options = {})
  FbPageApi::Edge::User.new(options)
end