Sha256: 2ba28f7fcfc671594453377ac655e55ea371e03f259e6b579a8b7bdaffa2d830

Contents?: true

Size: 891 Bytes

Versions: 2

Compression:

Stored size: 891 Bytes

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.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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_isds-0.9.1 lib/ruby_isds/data_box.rb
ruby_isds-0.9.0 lib/ruby_isds/data_box.rb