Class: NearApi::Yocto
- Inherits:
-
Object
- Object
- NearApi::Yocto
- Defined in:
- lib/near_api/yocto.rb
Class Method Summary collapse
Class Method Details
.from_near(amount) ⇒ Object
4 5 6 |
# File 'lib/near_api/yocto.rb', line 4 def self.from_near(amount) amount * 10**24 end |
.to_near(amount) ⇒ Object
8 9 10 |
# File 'lib/near_api/yocto.rb', line 8 def self.to_near(amount) amount.to_f / 10**24 end |