Class: ROM::SQL::Types::PG::Path

Inherits:
Struct
  • Object
show all
Defined in:
lib/rom/sql/extensions/postgres/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



437
438
439
# File 'lib/rom/sql/extensions/postgres/types.rb', line 437

def points
  @points
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



437
438
439
# File 'lib/rom/sql/extensions/postgres/types.rb', line 437

def type
  @type
end

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)


442
443
444
# File 'lib/rom/sql/extensions/postgres/types.rb', line 442

def closed?
  type == :closed
end

#open?Boolean

Returns:

  • (Boolean)


438
439
440
# File 'lib/rom/sql/extensions/postgres/types.rb', line 438

def open?
  type == :open
end

#to_aObject



446
447
448
# File 'lib/rom/sql/extensions/postgres/types.rb', line 446

def to_a
  points
end