Sha256: 620fef7f5aeca328769d77832ce5cab90051bb7bc8314f6e89e637eff55551b3

Contents?: true

Size: 448 Bytes

Versions: 23

Compression:

Stored size: 448 Bytes

Contents

module Myfinance
  module Entities
    class Attachment < Base
      [:id, :entity_id, :attachment_file_size].each { |k| attribute k, Integer }

      [:title, :attachment_file_name, :download_url,
       :attachment_content_type].each { |k| attribute k, String }

      [:created_at, :updated_at].each { |k| attribute k, DateTime }

      attribute :attachables, Array[Hash]
      attribute :links, Array[Hash[String => String]]
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
myfinance-1.8.2 lib/myfinance/entities/attachment.rb
myfinance-1.8.1 lib/myfinance/entities/attachment.rb
myfinance-1.8.0 lib/myfinance/entities/attachment.rb
myfinance-1.7.0 lib/myfinance/entities/attachment.rb
myfinance-1.6.6 lib/myfinance/entities/attachment.rb
myfinance-1.6.5 lib/myfinance/entities/attachment.rb
myfinance-1.6.4 lib/myfinance/entities/attachment.rb
myfinance-1.6.3 lib/myfinance/entities/attachment.rb
myfinance-1.6.1 lib/myfinance/entities/attachment.rb
myfinance-1.6.0 lib/myfinance/entities/attachment.rb
myfinance-1.5.0 lib/myfinance/entities/attachment.rb
myfinance-1.4.1 lib/myfinance/entities/attachment.rb
myfinance-1.4.0 lib/myfinance/entities/attachment.rb
myfinance-1.3.1 lib/myfinance/entities/attachment.rb
myfinance-1.3.0 lib/myfinance/entities/attachment.rb
myfinance-1.2.1 lib/myfinance/entities/attachment.rb
myfinance-1.2.0 lib/myfinance/entities/attachment.rb
myfinance-1.1.0 lib/myfinance/entities/attachment.rb
myfinance-1.0.0 lib/myfinance/entities/attachment.rb
myfinance-0.7.0 lib/myfinance/entities/attachment.rb