Skip to content

Commit

Permalink
Align function definition ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Nov 8, 2015
1 parent 105d3c6 commit 82598bc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/extwitter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -609,32 +609,32 @@ defmodule ExTwitter do
defdelegate sent_direct_messages(options), to: ExTwitter.API.DirectMessages

@doc """
POST direct_messages/destroy/:id
POST direct_messages/new

This comment has been minimized.

Copy link
@waseem

waseem Nov 8, 2015

Contributor

@parroty Thanks for doing this. 😄

Specify one of the `screen name`, or `user id` in first argument.
## Examples
ExTwitter.destroy_direct_message(12345)
ExTwitter.new_direct_message("twitter", "Message text")
## Reference
https://dev.twitter.com/rest/reference/post/direct_messages/destroy
https://dev.twitter.com/rest/reference/post/direct_messages/new
"""
@spec destroy_direct_message(Integer) :: ExTwitter.Model.DirectMessage.t
defdelegate destroy_direct_message(id), to: ExTwitter.API.DirectMessages
@spec new_direct_message(String.t | Integer, String.t) :: ExTwitter.Model.DirectMessage.t
defdelegate new_direct_message(id_or_screen_name, text), to: ExTwitter.API.DirectMessages

@doc """
POST direct_messages/new
Specify one of the `screen name`, or `user id` in first argument.
POST direct_messages/destroy/:id
## Examples
ExTwitter.new_direct_message("twitter", "Message text")
ExTwitter.destroy_direct_message(12345)
## Reference
https://dev.twitter.com/rest/reference/post/direct_messages/new
https://dev.twitter.com/rest/reference/post/direct_messages/destroy
"""
@spec new_direct_message(String.t | Integer, String.t) :: ExTwitter.Model.DirectMessage.t
defdelegate new_direct_message(id_or_screen_name, text), to: ExTwitter.API.DirectMessages
@spec destroy_direct_message(Integer) :: ExTwitter.Model.DirectMessage.t
defdelegate destroy_direct_message(id), to: ExTwitter.API.DirectMessages

@doc """
POST direct_messages/destroy/:id
Expand Down

0 comments on commit 82598bc

Please sign in to comment.