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 [
|
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 [
|
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