Skip to content

Commit

Permalink
remove typespecs for bang methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiercy827 committed Oct 8, 2018
1 parent de1b628 commit 0f3c94d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/lob/resource_base.ex
Expand Up @@ -19,7 +19,6 @@ defmodule Lob.ResourceBase do
Client.get_request("#{base_url()}?#{Util.build_query_string(params)}" , Util.build_headers(headers))
end

@spec list!(map, map) :: {map, list}
def list!(params \\ %{}, headers \\ %{}) do
case list(params, headers) do
{:ok, body, headers} -> {body, headers}
Expand All @@ -34,7 +33,6 @@ defmodule Lob.ResourceBase do
Client.get_request(resource_url(id), Util.build_headers(headers))
end

@spec retrieve!(map, map) :: {map, list}
def retrieve!(id \\ %{}, headers \\ %{}) do
case retrieve(id, headers) do
{:ok, body, headers} -> {body, headers}
Expand All @@ -49,7 +47,6 @@ defmodule Lob.ResourceBase do
Client.post_request(base_url(), Util.build_body(data), Util.build_headers(headers))
end

@spec create!(map, map) :: {map, list}
def create!(data \\ %{}, headers \\ %{}) do
case create(data, headers) do
{:ok, body, headers} -> {body, headers}
Expand All @@ -64,7 +61,6 @@ defmodule Lob.ResourceBase do
Client.delete_request(resource_url(id), Util.build_headers(headers))
end

@spec delete!(map, map) :: {map, list}
def delete!(id \\ %{}, headers \\ %{}) do
case delete(id, headers) do
{:ok, body, headers} -> {body, headers}
Expand Down

0 comments on commit 0f3c94d

Please sign in to comment.