Class: Infold::DefaultOrder
- Inherits:
-
Object
- Object
- Infold::DefaultOrder
- Defined in:
- lib/infold/property/default_order.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#order_kind ⇒ Object
readonly
Returns the value of attribute order_kind.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource, field, order_kind) ⇒ DefaultOrder
constructor
A new instance of DefaultOrder.
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
4 5 6 |
# File 'lib/infold/property/default_order.rb', line 4 def field @field end |
#order_kind ⇒ Object (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 |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
4 5 6 |
# File 'lib/infold/property/default_order.rb', line 4 def resource @resource end |