Sha256: a65d78a55095a1c76cdd089fc11cdebfd5cb19aa6472b2ba945f8b309e3b8435

Contents?: true

Size: 454 Bytes

Versions: 9

Compression:

Stored size: 454 Bytes

Contents

module Youroom
  class ShowAttachment < Request
    attr_reader :room_id, :entry_id
    def initialize(access_token, room_id, entry_id, url=BASE_URL)
      [room_id, entry_id].each { |e| required_structure(e, String, Symbol, Fixnum) }
      @room_id = room_id
      @entry_id = entry_id
      super(access_token, url)
    end

    def path
      File.join(url, 'r', room_id.to_s, 'entries', entry_id.to_s, 'attachment', '?format=json')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
youroom_api-0.1.4 lib/youroom_api/request/show_attachment.rb
youroom_api-0.1.3 lib/youroom_api/request/show_attachment.rb
youroom_api-0.1.2 lib/youroom_api/request/show_attachment.rb
youroom_api-0.1.1 lib/youroom_api/request/show_attachment.rb
youroom_api-0.1.0 lib/youroom_api/request/show_attachment.rb
youroom_api-0.0.13 lib/youroom_api/request/show_attachment.rb
youroom_api-0.0.12 lib/youroom_api/request/show_attachment.rb
youroom_api-0.0.11 lib/youroom_api/request/show_attachment.rb
youroom_api-0.0.10 lib/youroom_api/request/show_attachment.rb