Method: Radiator::OperationTypes#type
- Defined in:
- lib/radiator/operation_types.rb
permalink #type(chain, key, param, value) ⇒ Object
[View source]
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/radiator/operation_types.rb', line 138 def type(chain, key, param, value) return if value.nil? t = TYPES[key] or return value p = t[param] or return value if p == Hive::Type::Amount case chain when :steem then Steem::Type::Amount.new(value) else p.new(value) end else p.new(value) end end |