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



125
126
127
# File 'lib/rom/sql/extensions/postgres/types.rb', line 125

def points
  @points
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



125
126
127
# File 'lib/rom/sql/extensions/postgres/types.rb', line 125

def type
  @type
end

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)


130
131
132
# File 'lib/rom/sql/extensions/postgres/types.rb', line 130

def closed?
  type == :closed
end

#open?Boolean

Returns:

  • (Boolean)


126
127
128
# File 'lib/rom/sql/extensions/postgres/types.rb', line 126

def open?
  type == :open
end

#to_aObject



134
135
136
# File 'lib/rom/sql/extensions/postgres/types.rb', line 134

def to_a
  points
end