class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data - activerecord-4.2.5.2 Documentation

# class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data

### Attributes

value[R]

### Public Class Methods

new(value) click to toggle source

    # File lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 28
    def initialize(value)
      @value = value
    end

### Public Instance Methods

binary?() click to toggle source

    # File lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 36
    def binary?
      /\A[01]*\Z/ === value
    end

hex?() click to toggle source

    # File lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 40
    def hex?
      /\A[0-9A-F]*\Z/i === value
    end

to_s() click to toggle source

    # File lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 32
    def to_s
      value
    end