class Centaman::Service::CostRate
Attributes
email[R]
first_name[R]
last_name[R]
Public Instance Methods
after_init(args = {})
click to toggle source
# File lib/centaman/service/cost_rate.rb, line 6 def after_init(args = {}) @first_name = args.fetch(:first_name, nil) @last_name = args.fetch(:last_name, nil) @email = args.fetch(:email, nil) end
build_objects(resp)
click to toggle source
# File lib/centaman/service/cost_rate.rb, line 28 def build_objects(resp) return [] unless resp.respond_to?(:map) return build_object(resp) if resp.respond_to?(:merge) @tickets = resp.map do |ticket_hash| object_class.new(ticket_hash.merge(additional_hash_to_serialize_after_response)) end end
endpoint()
click to toggle source
# File lib/centaman/service/cost_rate.rb, line 16 def endpoint '/ticket_services/TimedTicket' end
object_class()
click to toggle source
# File lib/centaman/service/cost_rate.rb, line 12 def object_class Centaman::Object::CostRate end
options()
click to toggle source
Calls superclass method
# File lib/centaman/service/cost_rate.rb, line 20 def options super + [ { key: 'FirstName', value: first_name }, { key: 'LastName', value: last_name }, { key: 'Email', value: email } ] end