Class: Evvnt::Contract
Overview
Public: Returns contract info from the EVVNT API
Constant Summary collapse
- OBJECT_KEY =
The JSON key for the package data from the API response.
"package_options".freeze
Constants included from PathHelpers
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
-
#index ⇒ Object
GET /contract Get contract information.
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
#index ⇒ Object
GET /contract Get contract information
13 14 15 |
# File 'lib/evvnt/contract.rb', line 13 define_action :index do api_request(:get, plural_resource_path, options: { object: OBJECT_KEY }) end |