Class: MrMurano::Webservice::Endpoint::RouteItem

Inherits:
Item
  • Object
show all
Defined in:
lib/MrMurano/Webservice-Endpoint.rb

Overview

Route Specific details on an Item

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_typeString

Returns Acceptable Content-Type for this endpoint.

Returns:

  • (String)

    Acceptable Content-Type for this endpoint



27
28
29
# File 'lib/MrMurano/Webservice-Endpoint.rb', line 27

def content_type
  @content_type
end

#methodString

Returns HTTP method for this endpoint.

Returns:

  • (String)

    HTTP method for this endpoint



23
24
25
# File 'lib/MrMurano/Webservice-Endpoint.rb', line 23

def method
  @method
end

#pathString

Returns path for URL maps to this endpoint.

Returns:

  • (String)

    path for URL maps to this endpoint



25
26
27
# File 'lib/MrMurano/Webservice-Endpoint.rb', line 25

def path
  @path
end

#use_basic_authObject

NOTE: We do not use use_basic_auth internally, but it’s passed from the server, so the code actually indirectly sees it in ‘def []=`.



30
31
32
# File 'lib/MrMurano/Webservice-Endpoint.rb', line 30

def use_basic_auth
  @use_basic_auth
end

Instance Method Details

#reject_ephemeralObject



32
33
34
35
# File 'lib/MrMurano/Webservice-Endpoint.rb', line 32

def reject_ephemeral
  # All attrs exist on server, so nothing to remove.
  super
end