Class: Hahamut::Attribute::Integer

Inherits:
Base
  • Object
show all
Defined in:
lib/hahamut/attribute/integer.rb

Overview

Integer Type

Instance Attribute Summary

Attributes inherited from Base

#before_cast

Instance Method Summary collapse

Methods inherited from Base

#as_json, #initialize, #to_json

Constructor Details

This class inherits a constructor from Hahamut::Attribute::Base

Instance Method Details

#valueObject



7
8
9
# File 'lib/hahamut/attribute/integer.rb', line 7

def value
  @value ||= before_cast.to_i
end