Sha256: ee6d32a7c94f17adab0d32aa07a1d38350d013896bee22dc545a8bde5fe3a893

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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

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

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

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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