Class: PFS::Resources::Transfers::InternalTransfer
- Defined in:
- lib/pfs/resources/transfers/internal_transfer.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(response, attributes = {}) ⇒ InternalTransfer
constructor
A new instance of InternalTransfer.
Methods inherited from Base
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
#from ⇒ Object (readonly)
Returns the value of attribute from.
7 8 9 |
# File 'lib/pfs/resources/transfers/internal_transfer.rb', line 7 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
7 8 9 |
# File 'lib/pfs/resources/transfers/internal_transfer.rb', line 7 def to @to end |