class Rapa::Quantity
Attributes
source[R]
@return [Hash]
Public Class Methods
new(source)
click to toggle source
@param source [Hash]
# File lib/rapa/quantity.rb, line 7 def initialize(source) @source = source end
Public Instance Methods
units()
click to toggle source
@return [String]
# File lib/rapa/quantity.rb, line 12 def units source["Units"] end
value()
click to toggle source
@return [Integer]
# File lib/rapa/quantity.rb, line 17 def value source["__content__"].to_i end