44uk/nis-ruby

View on GitHub
lib/nis/struct/harvest_info.rb

Summary

Maintainability
A
20 mins
Test Coverage
class Nis::Struct
  # @attr [Integer] timeStamp
  # @attr [String] id
  # @attr [Integer] difficulty
  # @attr [Integer] totalFee
  # @attr [Integer] height
  # @see https://nemproject.github.io/#harvestInfo
  class HarvestInfo
    include Nis::Util::Assignable
    attr_accessor :timeStamp, :id, :difficulty, :totalFee, :height

    alias :timestamp :timeStamp
    alias :timestamp= :timeStamp=
    alias :total_fee :totalFee
    alias :total_fee= :totalFee=

    def self.build(attrs)
      new(attrs)
    end
  end
end