one-email_direct 0.6 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,6 +46,7 @@ module One::EmailDirect::Mixins::ListFacade
46
46
  # @param name [String] the name of the list.
47
47
  #
48
48
  # @return [Hash] a hash that describes the list.
49
+ # {:element_id => 'id', :element_name => 'name', :description => 'description'}
49
50
  #
50
51
  def list_get(credentials, name)
51
52
  list_getall(credentials).each {|element| return element if element[:element_name] == name}
@@ -60,7 +61,7 @@ module One::EmailDirect::Mixins::ListFacade
60
61
  #
61
62
  # http://dev.emaildirect.com/v1/api.asmx?op=List_GetAll
62
63
  #
63
- # @return [Hash] TODO {:description=>"a description.", :element_name=>"name12353", :element_id=>"170"}
64
+ # @return [Array] [{:element_id => 'id', :element_name => 'name', :description => 'description'}]
64
65
  #
65
66
  def list_getall(credentials)
66
67
  response = send_soap(
@@ -46,6 +46,7 @@ module One::EmailDirect::Mixins::PublicationFacade
46
46
  # @param name [String] the name of the publication.
47
47
  #
48
48
  # @return [Hash] a hash that describes the publication.
49
+ # {:element_id => 'id', :element_name => 'name', :description => 'description'}
49
50
  #
50
51
  def publication_get(credentials, name)
51
52
  publication_getall(credentials).each {|element| return element if element[:element_name] == name}
@@ -46,6 +46,7 @@ module One::EmailDirect::Mixins::SourceFacade
46
46
  # @param name [String] the name of the source.
47
47
  #
48
48
  # @return [Hash] a hash that describes the source.
49
+ # {:element_id => 'id', :element_name => 'name', :description => 'description'}
49
50
  #
50
51
  def source_get(credentials, name)
51
52
  source_getall(credentials).each {|element| return element if element[:element_name] == name}
@@ -60,7 +61,7 @@ module One::EmailDirect::Mixins::SourceFacade
60
61
  #
61
62
  # http://dev.emaildirect.com/v1/api.asmx?op=source_GetAll
62
63
  #
63
- # @return [Hash] TODO {:description=>"a description.", :element_name=>"name12353", :element_id=>"170"}
64
+ # @return [Array] [{:element_id => 'id', :element_name => 'name', :description => 'description'}]
64
65
  #
65
66
  def source_getall(credentials)
66
67
  response = send_soap(
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: one-email_direct
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- version: "0.6"
9
+ - 2
10
+ version: 0.6.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Pedro Salgado