Class: Hahamut::Attribute::String

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

Overview

String 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/string.rb', line 7

def value
  @value ||= before_cast.to_s
end