Sha256: 993995a6678a43da221408bc79e64e7eecb2d57cb7288bb8d6b89d6b7ba948a3

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

module Pepipost
  class Files
    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :example_attachment_1_txt

    def method_missing(method_name)
      puts "there's no method called '#{method_name}'"
    end

    # Creates JSON of the curent object
    def to_json
      hash = key_map
      hash.to_json
    end

    # Defines the key map for json serialization
    def key_map
      hash = {}
      hash['example_attachment1.txt'] = example_attachment_1_txt
      hash
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pepipost-0.0.1 lib/pepipost/models/files.rb