Class: Access::Program

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MuchMeta

#set_up_methods, #set_values

Constructor Details

#initialize(values) ⇒ Program

Returns a new instance of Program.



9
10
11
12
13
# File 'lib/access/program.rb', line 9

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

Class Method Details

.find_provisioning_method(pcid) ⇒ Object



15
16
17
# File 'lib/access/program.rb', line 15

def self.find_provisioning_method(pcid)
  Access::Api.new.find_program_provisioning_method pcid
end

.process_batch(chunk) ⇒ Object



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

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