module Safrano::EntityBase::Transitions
methods related to transitions to next state (cf. walker)
Public Instance Methods
allowed_transitions()
click to toggle source
# File lib/odata/entity.rb, line 18 def allowed_transitions self.class.entity_allowed_transitions end
transition_attribute(match_result)
click to toggle source
# File lib/odata/entity.rb, line 39 def transition_attribute(match_result) attrib = match_result[1] [Safrano::Attribute.new(self, attrib), :run] end
transition_count(_match_result)
click to toggle source
# File lib/odata/entity.rb, line 26 def transition_count(_match_result) [self, :end] end
transition_end(_match_result)
click to toggle source
# File lib/odata/entity.rb, line 22 def transition_end(_match_result) Safrano::Transition::RESULT_END end
transition_invalid_attribute(match_result)
click to toggle source
# File lib/odata/entity.rb, line 54 def transition_invalid_attribute(match_result) invalid_attrib = match_result[1] [nil, :error, Safrano::ErrorNotFoundSegment.new(invalid_attrib)] end
transition_links(_match_result)
click to toggle source
# File lib/odata/entity.rb, line 35 def transition_links(_match_result) [self, :run_with_links] end
transition_value(_match_result)
click to toggle source
# File lib/odata/entity.rb, line 30 def transition_value(_match_result) # $value is only allowd for media entities (or attributes) [self, :end_with_media_value] end