Sha256: d19e3c8ef7f5f4438f3fdd853b6d7423e6cefd5d3c74ccc0928acf00d89ccbc4

Contents?: true

Size: 223 Bytes

Versions: 6

Compression:

Stored size: 223 Bytes

Contents

module Loquor
  class ApiCall::Show < ApiCall

    def initialize(klass, id)
      super(klass)
      @id = id
    end

    def execute
      obj = Loquor.get("#{klass.path}/#{@id}")
      @klass.new(obj)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
loquor-0.5.3 lib/loquor/api_calls/show.rb
loquor-0.5.2 lib/loquor/api_calls/show.rb
loquor-0.5.1 lib/loquor/api_calls/show.rb
loquor-0.5.0 lib/loquor/api_calls/show.rb
loquor-0.4.0 lib/loquor/api_calls/show.rb
loquor-0.3.0 lib/loquor/api_calls/show.rb