Sha256: da9374dd65dbd3630a54f94bfd2f7ab1d5b1f7cd82135e120f6d89437dabde01

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

module RestPack::Activity::Proxies
  class Local < RestPack::BaseProxy
    def self.get(id)
      response = RestPack::Services::Activity::Get.run({
        id: id,
        application_id: RestPack::Activity.config.application_id
      })

      raise_exceptions_if_required(response)
      response
    end

    def self.list(params = {})
      response = RestPack::Services::Activity::List.run(params, {
        application_id: RestPack::Activity.config.application_id
      })

      raise_exceptions_if_required(response)
      response
    end

    def self.create(params)
      response = RestPack::Services::Activity::Create.run(params, {
        application_id: RestPack::Activity.config.application_id
      })

      raise_exceptions_if_required(response)
      response
    end

    def self.update(params)
      response = RestPack::Services::Activity::Update.run(params, {
        application_id: RestPack::Activity.config.application_id
      })

      raise_exceptions_if_required(response)
      response
    end

    def self.destroy(id)
      response = RestPack::Services::Activity::Destry.run({
        id: id,
        application_id: RestPack::Activity.config.application_id
      })

      raise_exceptions_if_required(response)
      response
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restpack_activity-0.0.5 lib/restpack_activity/proxies/activity/local.rb
restpack_activity-0.0.4 lib/restpack_activity/proxies/activity/local.rb
restpack_activity-0.0.3 lib/restpack_activity/proxies/activity/local.rb
restpack_activity-0.0.2 lib/restpack_activity/proxies/activity/local.rb