Sha256: ab06fe387bd38a7fd3d7289d959eebd611726dae04476c6cd79962d02d3e55af

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

module Nuncium
  class DataBox
    def self.check(options = {})
      ::Nuncium::WebServices::DbSearch::CheckDataBox
        .call(options.merge(dbID: ::Nuncium.configuration.data_box))
    end

    def self.find_by(options = {})
      ::Nuncium::WebServices::DbSearch::FindDataBox
        .call(options)
    end

    def self.owner_info
      ::Nuncium::WebServices::DbAccess::GetOwnerInfoFromLogin.call
    end

    def self.credit_info(options = {})
      ::Nuncium::WebServices::DbSearch::DataBoxCreditInfo
        .call(options.merge(dbID: ::Nuncium.configuration.data_box))
    end

    def self.received(options = {})
      Nuncium::WebServices::DmInfo::GetListOfReceivedMessages
        .call(options)
    end

    def self.sent(options = {})
      Nuncium::WebServices::DmInfo::GetListOfSentMessages
        .call(options)
    end

    def self.state_changes(options = {})
      Nuncium::WebServices::DmInfo::GetMessageStateChanges
        .call(options)
    end

    def self.ping
      Nuncium::WebServices::DmOperations::Ping.call
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nuncium-0.13.0 lib/nuncium/data_box.rb