Class: ProxES::Request::Create
- Inherits:
-
ProxES::Request
- Object
- Rack::Request
- ProxES::Request
- ProxES::Request::Create
- Defined in:
- lib/proxes/request/create.rb
Constant Summary
Constants inherited from ProxES::Request
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#index ⇒ Object
Returns the value of attribute index.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from ProxES::Request
#detail, #duration, from_env, #html?, #initialize, path_endpoint, #user, #user_id
Constructor Details
This class inherits a constructor from ProxES::Request
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/proxes/request/create.rb', line 9 def id @id end |
#index ⇒ Object
Returns the value of attribute index.
9 10 11 |
# File 'lib/proxes/request/create.rb', line 9 def index @index end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/proxes/request/create.rb', line 9 def type @type end |
Instance Method Details
#endpoint ⇒ Object
18 19 20 |
# File 'lib/proxes/request/create.rb', line 18 def endpoint '_create' end |
#indices? ⇒ Boolean
28 29 30 |
# File 'lib/proxes/request/create.rb', line 28 def indices? true end |
#parse ⇒ Object
22 23 24 25 26 |
# File 'lib/proxes/request/create.rb', line 22 def parse @index ||= check_part(path_parts[0]) @type ||= check_part(path_parts[1]) @id ||= check_part(path_parts[2]) end |