Class: PFS::Resources::Transfers::InternalTransfer

Inherits:
Base
  • Object
show all
Defined in:
lib/pfs/resources/transfers/internal_transfer.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

map

Constructor Details

#initialize(response, attributes = {}) ⇒ InternalTransfer

Returns a new instance of InternalTransfer.



9
10
11
12
13
# File 'lib/pfs/resources/transfers/internal_transfer.rb', line 9

def initialize(response, attributes = {})
  super(response, attributes)
  @from = InternalTransferFrom.new(response, attributes[:from])
  @to = InternalTransferTo.new(response, attributes[:to])
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



7
8
9
# File 'lib/pfs/resources/transfers/internal_transfer.rb', line 7

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



7
8
9
# File 'lib/pfs/resources/transfers/internal_transfer.rb', line 7

def to
  @to
end