Class: Centaman::Service::GiftTicket
- Inherits:
-
Centaman::Service
- Object
- Wrapper
- Centaman::Service
- Centaman::Service::GiftTicket
- Includes:
- JsonWrapper
- Defined in:
- lib/centaman/service/gift_ticket.rb
Constant Summary
Constants inherited from Wrapper
Instance Attribute Summary collapse
-
#department_id ⇒ Object
readonly
Returns the value of attribute department_id.
Attributes inherited from Wrapper
#api_password, #api_token, #api_url, #api_username, #proxie_host, #proxie_password, #proxie_port, #proxie_user
Instance Method Summary collapse
Methods included from JsonWrapper
#additional_hash_to_serialize_after_response, #build_object, #build_objects, #final_object_class, #objects
Methods inherited from Centaman::Service
#after_post, #fetch_all, #post, #put
Methods inherited from Wrapper
#generate_token, #headers, #initialize, #options_hash, #payload, #payload_key, #proxy_hash, #wrap_request_in_case_of_timeout
Constructor Details
This class inherits a constructor from Centaman::Wrapper
Instance Attribute Details
#department_id ⇒ Object (readonly)
Returns the value of attribute department_id.
4 5 6 |
# File 'lib/centaman/service/gift_ticket.rb', line 4 def department_id @department_id end |
Instance Method Details
#after_init(args) ⇒ Object
6 7 8 |
# File 'lib/centaman/service/gift_ticket.rb', line 6 def after_init(args) @department_id = args[:department_id] end |
#endpoint ⇒ Object
10 11 12 |
# File 'lib/centaman/service/gift_ticket.rb', line 10 def endpoint '/ticket_services/Ticket' end |
#object_class ⇒ Object
14 15 16 |
# File 'lib/centaman/service/gift_ticket.rb', line 14 def object_class Centaman::Object::GiftTicket end |
#options ⇒ Object
18 19 20 21 22 |
# File 'lib/centaman/service/gift_ticket.rb', line 18 def super + [ { key: 'DepartmentID', value: department_id } ] end |