class Mingle::CardTypePropertyDefinition
This is a lightweight representation of the relationship between a card_type
and a property definition as configured in Mingle
.
Attributes
card_type_loader[W]
property_definition_loader[W]
Public Class Methods
new(card_type_property_definition)
click to toggle source
# File lib/mingle_macro_models/card_type_property_definition.rb, line 7 def initialize(card_type_property_definition) @card_type_property_definition = card_type_property_definition end
Public Instance Methods
card_type()
click to toggle source
# File lib/mingle_macro_models/card_type_property_definition.rb, line 15 def card_type @card_type_loader.load end
position()
click to toggle source
# File lib/mingle_macro_models/card_type_property_definition.rb, line 11 def position @card_type_property_definition.position.to_i end
property_definition()
click to toggle source
# File lib/mingle_macro_models/card_type_property_definition.rb, line 19 def property_definition @property_definition_loader.load end