Class: Evvnt::Package
Overview
Public: Represents the packages resources on the EVVNT API.
Constant Summary
Constants included from PathHelpers
Evvnt::PathHelpers::PARAM_REGEX
Constants included from Attributes
Attributes::DATETIME_STRING_REGEX, Attributes::DATE_STRING_REGEX
Constants included from Api
Constants included from Logging
Instance Attribute Summary
Attributes included from Attributes
Instance Method Summary collapse
-
#create ⇒ Object
POST /packages Create a package.
-
#index ⇒ Object
GET /users/:user_id/packages Lists all of the packages belonging to a user.
-
#mine ⇒ Object
GET /packages/mine List my packages.
-
#show ⇒ Object
GET /packages/:package_id Get the details of a package.
Methods included from PathHelpers
#resource_name, #singular_resource?
Methods included from Actions
Methods included from Attributes
#initialize, #unique_identifier
Methods included from Persistence
#new_record?, #persisted?, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Evvnt::Attributes
Instance Method Details
#create ⇒ Object
POST /packages Create a package
11 |
# File 'lib/evvnt/package.rb', line 11 define_action :create |
#index ⇒ Object
GET /users/:user_id/packages Lists all of the packages belonging to a user
7 |
# File 'lib/evvnt/package.rb', line 7 define_action :index |
#mine ⇒ Object
GET /packages/mine List my packages
19 |
# File 'lib/evvnt/package.rb', line 19 define_action :mine |
#show ⇒ Object
GET /packages/:package_id Get the details of a package
15 |
# File 'lib/evvnt/package.rb', line 15 define_action :show |