Sha256: 576ac9d1b3920dbd0a9853ddd35122a6f99ed31d031c7d2d95352cc738f9851e
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require "grape-entity" module RestFtpDaemon module Entities class Location < Grape::Entity expose :url #, as: 'raw' # expose :uri expose :scheme expose :host, unless: Proc.new {|obj| obj.host.nil?} expose :user, unless: Proc.new {|obj| obj.user.nil?} expose :port, if: Proc.new {|obj| !obj.port.nil?} expose :dir expose :name expose :path expose :filepath expose :aws_region ,unless: Proc.new {|obj| obj.aws_region.nil?} expose :aws_bucket, unless: Proc.new {|obj| obj.aws_bucket.nil?} expose :aws_id, unless: Proc.new {|obj| obj.aws_id.nil?} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-1.0.4 | lib/rest-ftp-daemon/entities/location.rb |
rest-ftp-daemon-1.0.3 | lib/rest-ftp-daemon/entities/location.rb |