Method: EverSdk::Abi::AbiFunction#to_h
- Defined in:
- lib/ever_sdk_client/abi.rb
#to_h ⇒ Object
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/ever_sdk_client/abi.rb', line 592 def to_h in_h_s = if !@inputs.nil? @inputs.compact.map(&:to_h) else [] end ou_h_s = if !@outputs.nil? @outputs.compact.map(&:to_h) else [] end { name: @name, inputs: in_h_s, outputs: ou_h_s, id: @id_ } end |