Module: Pinterest::Client::Pin

Included in:
Pinterest::Client
Defined in:
lib/pinterest/client/pin.rb

Instance Method Summary collapse

Instance Method Details

#create_pin(params = {}) ⇒ Object



13
14
15
# File 'lib/pinterest/client/pin.rb', line 13

def create_pin(params={})
  post('pins', params)
end

#delete_pin(id) ⇒ Object



21
22
23
# File 'lib/pinterest/client/pin.rb', line 21

def delete_pin(id)
  delete("pins/#{id}")
end

#get_board_pins(board_id, options = {}) ⇒ Object



9
10
11
# File 'lib/pinterest/client/pin.rb', line 9

def get_board_pins(board_id, options={})
  get("boards/#{board_id}/pins", options)
end

#get_pin(id, options = {}) ⇒ Object



5
6
7
# File 'lib/pinterest/client/pin.rb', line 5

def get_pin(id, options={})
  get("pins/#{id}", options)
end

#update_pin(id, params = {}) ⇒ Object



17
18
19
# File 'lib/pinterest/client/pin.rb', line 17

def update_pin(id, params={})
  patch("pins/#{id}", params)
end