class Moblues::Reader::Relationship
Public Instance Methods
relationship(xml)
click to toggle source
# File lib/moblues/reader/relationship.rb, line 7 def relationship(xml) DataModel::Relationship.new( name: xml.attributes['name'], destination_entity: xml.attributes['destinationEntity'], to_many: opt_bool(xml.attributes['toMany']), ordered: opt_bool(xml.attributes['ordered']) ) end
Private Instance Methods
opt_bool(str_value)
click to toggle source
# File lib/moblues/reader/relationship.rb, line 17 def opt_bool(str_value) str_value == 'YES' end