Class: PepipostSdkRuby::Files
- Inherits:
-
Object
- Object
- PepipostSdkRuby::Files
- Defined in:
- lib/pepipost_sdk_ruby/models/files.rb
Instance Attribute Summary collapse
-
#example_attachment_1_txt ⇒ 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
9 10 11 |
# File 'lib/pepipost_sdk_ruby/models/files.rb', line 9 def method_missing(method_name) puts "there's no method called '#{method_name}'" end |
Instance Attribute Details
#example_attachment_1_txt ⇒ String
TODO: Write general description for this method
7 8 9 |
# File 'lib/pepipost_sdk_ruby/models/files.rb', line 7 def end |
Instance Method Details
#key_map ⇒ Object
Defines the key map for json serialization
20 21 22 23 24 |
# File 'lib/pepipost_sdk_ruby/models/files.rb', line 20 def key_map hash = {} hash['example_attachment1.txt'] = hash end |
#to_json ⇒ Object
Creates JSON of the curent object
14 15 16 17 |
# File 'lib/pepipost_sdk_ruby/models/files.rb', line 14 def to_json hash = key_map hash.to_json end |