Class: ShareWith::ServiceDataType::Boolean

Inherits:
BasicDataType show all
Defined in:
lib/share_with/service_data.rb

Overview

Define a boolean type.

Instance Attribute Summary

Attributes inherited from BasicDataType

#label, #value

Instance Method Summary collapse

Methods inherited from BasicDataType

#attr, #initialize, #reset!

Constructor Details

This class inherits a constructor from ShareWith::ServiceDataType::BasicDataType

Instance Method Details

#value=(val) ⇒ Object



41
42
43
# File 'lib/share_with/service_data.rb', line 41

def value=(val)
  @value = [true, "true", 1, "1"].include? val
end