Sha256: 34059c65629bc04eb45bad9eb71a05d453674022db02c5c2becbc695760c1bf3

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

module Youroom
  class DestroyEntry < Entry
    attr_reader :room_id, :mutter_id

    def initialize(access_token, room_id, mutter_id, url=BASE_URL)
      required_structure(room_id, String, Symbol, Fixnum)
      required_structure(mutter_id, String, Fixnum)
      @room_id, @mutter_id = room_id, mutter_id
      super(access_token, url)
    end

    def path
      File.join(url, 'r', room_id.to_s, 'entries', mutter_id.to_s+'?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/destroy_entry.rb
youroom_api-0.1.3 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.1.2 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.1.1 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.1.0 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.0.13 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.0.12 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.0.11 lib/youroom_api/request/destroy_entry.rb
youroom_api-0.0.10 lib/youroom_api/request/destroy_entry.rb