Class: PepipostSdkRuby::Emailv1
- Inherits:
-
Object
- Object
- PepipostSdkRuby::Emailv1
- Defined in:
- lib/pepipost_sdk_ruby/models/emailv_1.rb
Instance Attribute Summary collapse
-
#api_key ⇒ String
Your secret API Key.
-
#attributes ⇒ Attributes
TODO: Write general description for this method.
-
#email_details ⇒ EmailDetails
TODO: Write general description for this method.
-
#files ⇒ Files
TODO: Write general description for this method.
-
#recipients ⇒ Array<String>
TODO: Write general description for this method.
-
#settings ⇒ Settings
TODO: Write general description for this method.
-
#x_apiheader ⇒ Array<String>
TODO: Write general description for this method.
Instance Method Summary collapse
-
#key_map ⇒ Object
Defines the key map for json serialization.
- #method_missing(method_name) ⇒ Object
-
#to_json ⇒ Object
Creates JSON of the curent object.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ Object
33 34 35 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 33 def method_missing(method_name) puts "there's no method called '#{method_name}'" end |
Instance Attribute Details
#api_key ⇒ String
Your secret API Key
7 8 9 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 7 def api_key @api_key end |
#attributes ⇒ Attributes
TODO: Write general description for this method
27 28 29 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 27 def attributes @attributes end |
#email_details ⇒ EmailDetails
TODO: Write general description for this method
11 12 13 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 11 def email_details @email_details end |
#files ⇒ Files
TODO: Write general description for this method
31 32 33 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 31 def files @files end |
#recipients ⇒ Array<String>
TODO: Write general description for this method
23 24 25 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 23 def recipients @recipients end |
#settings ⇒ Settings
TODO: Write general description for this method
19 20 21 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 19 def settings @settings end |
#x_apiheader ⇒ Array<String>
TODO: Write general description for this method
15 16 17 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 15 def x_apiheader @x_apiheader end |
Instance Method Details
#key_map ⇒ Object
Defines the key map for json serialization
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 44 def key_map hash = {} hash['api_key'] = api_key hash['email_details'] = email_details hash['X-APIHEADER'] = x_apiheader hash['settings'] = settings hash['recipients'] = recipients hash['attributes'] = attributes hash['files'] = files hash end |
#to_json ⇒ Object
Creates JSON of the curent object
38 39 40 41 |
# File 'lib/pepipost_sdk_ruby/models/emailv_1.rb', line 38 def to_json hash = key_map hash.to_json end |