Class: Infold::DefaultOrder

Inherits:
Object
  • Object
show all
Defined in:
lib/infold/property/default_order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource, field, order_kind) ⇒ DefaultOrder

Returns a new instance of DefaultOrder.



8
9
10
11
12
# File 'lib/infold/property/default_order.rb', line 8

def initialize(resource, field, order_kind)
  @resource = resource
  @field = field
  @order_kind = order_kind
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



4
5
6
# File 'lib/infold/property/default_order.rb', line 4

def field
  @field
end

#order_kindObject (readonly)

Returns the value of attribute order_kind.



4
5
6
# File 'lib/infold/property/default_order.rb', line 4

def order_kind
  @order_kind
end

#resourceObject (readonly)

Returns the value of attribute resource.



4
5
6
# File 'lib/infold/property/default_order.rb', line 4

def resource
  @resource
end