class RSpecApib::Element::Transition

Represents a transition in api-elements (api-elements.readthedocs.io/en/latest/)

Public Class Methods

attributes_schema() click to toggle source
# File lib/rspec_apib/elements/transition.rb, line 15
def self.attributes_schema
  {
    href: "TemplatedHref"
  }
end
attrs_to_inherit() click to toggle source

Inherit href and hrefVariables from any ancestor (normally resource)

# File lib/rspec_apib/elements/transition.rb, line 11
def self.attrs_to_inherit
  [:href, :hrefVariables]
end

Public Instance Methods

http_transactions() click to toggle source
# File lib/rspec_apib/elements/transition.rb, line 6
def http_transactions
  content.select { |item| item.is_a?(HttpTransaction) }
end