Class: PagSeguro::Authorization::Collection

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pagseguro/authorization/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Collection

Returns a new instance of Collection.



10
11
12
13
# File 'lib/pagseguro/authorization/collection.rb', line 10

def initialize(options = {})
  @errors = options[:errors] if options[:errors]
  @authorizations = instantiate_authorizations(options[:authorizations])
end

Instance Attribute Details

#authorizations=(value) ⇒ Object (writeonly)

Sets the attribute authorizations

Parameters:

  • value

    the value to set the attribute authorizations to.



6
7
8
# File 'lib/pagseguro/authorization/collection.rb', line 6

def authorizations=(value)
  @authorizations = value
end

Instance Method Details

#errorsObject



15
16
17
# File 'lib/pagseguro/authorization/collection.rb', line 15

def errors
  @errors ||= Errors.new
end