class RSpecApib::Element::Resource

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

Public Class Methods

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

Public Instance Methods

categories() click to toggle source
# File lib/rspec_apib/elements/resource.rb, line 10
def categories
  content.select { |item| item.is_a?(Category) }
end
transitions() click to toggle source
# File lib/rspec_apib/elements/resource.rb, line 6
def transitions
  content.select { |item| item.is_a?(Transition) }
end