Class: Access::Amt

Inherits:
Object
  • Object
show all
Includes:
MuchMeta
Defined in:
lib/access/amt.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MuchMeta

#set_up_methods, #set_values

Constructor Details

#initialize(values) ⇒ Amt

Returns a new instance of Amt.



21
22
23
24
25
# File 'lib/access/amt.rb', line 21

def initialize(values)
  @used_fields = []
  set_up_methods(values)
  set_values(values)
end

Class Method Details

.import(members = [], options = {}) ⇒ Object



5
6
7
# File 'lib/access/amt.rb', line 5

def self.import(members = [], options = {})
  Access::Api.new.import_members members, options
end

.list(options = {}) ⇒ Object



9
10
11
# File 'lib/access/amt.rb', line 9

def self.list(options = {})
  Access::Api.new.list_imports options
end

.process_batch(chunk) ⇒ Object



17
18
19
# File 'lib/access/amt.rb', line 17

def self.process_batch(chunk)
  chunk.map { |member_import| new(member_import) }
end

.show(import_key, options = {}) ⇒ Object



13
14
15
# File 'lib/access/amt.rb', line 13

def self.show(import_key, options = {})
  Access::Api.new.show_import import_key, options
end