Method: FlowClient::CadenceType.Capability

Defined in:
lib/flow_client/cadence_type.rb

.Capability(path, address, borrow_type) ⇒ Object



157
158
159
160
161
162
163
164
165
166
# File 'lib/flow_client/cadence_type.rb', line 157

def self.Capability(path, address, borrow_type)
  OpenStruct.new(
    type: "Capability",
    value: OpenStruct.new(
      path: path.to_s,
      address: address.to_s,
      borrowType: borrow_type.to_s
    )
  )
end