Class: BetfairApiNgRails::Api::Data::PlaceInstruction

Inherits:
Base
  • Object
show all
Includes:
Concerns::Hashable
Defined in:
lib/betfair_api_ng_rails/api/data/place_instruction.rb

Constant Summary collapse

PLACE_INSTRUCTION_ATTRS =
[
  :order_type,
  :selection_id,
  :handicap,
  :side,
  { limit_order: { type: BetfairApiNgRails::LimitOrder } },
  { limit_on_close_order: { type: BetfairApiNgRails::LimitOnCloseOrder } },
  { market_on_close_order: { type: BetfairApiNgRails::MarketOnCloseOrder } }
]

Constants included from Constants

Constants::ATTRS_AS_IS

Constants included from Concerns::Attributable

Concerns::Attributable::DEFAULT_OPTIONS

Class Method Summary collapse

Methods included from Concerns::Hashable

#to_hash, #to_param

Methods inherited from Base

#initialize

Methods included from Concerns::Jsonable

included

Methods included from Concerns::Attributable

included

Constructor Details

This class inherits a constructor from BetfairApiNgRails::Api::Data::Base

Class Method Details

.to_hash_attrsObject



19
20
21
# File 'lib/betfair_api_ng_rails/api/data/place_instruction.rb', line 19

def self.to_hash_attrs
  PLACE_INSTRUCTION_ATTRS
end