Sha256: 28e7056bc9e31374c2e8edc4e19f55ef84444e7ec50aec40cc53fe9b0edfadc9
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
module Centaman class Service::Package < Centaman::Service include Centaman::JsonWrapper attr_reader :membership_type_id def after_init(args) @membership_type_id = args.fetch(:membership_type_id, nil).try(:to_i) end def endpoint "/member_services/MembershipType?PackageID=#{membership_type_id}" end def object_class Centaman::Object::Package end def find(id) objects.detect {|obj| obj.id == id } end def additional_hash_to_serialize_after_response { membership_type_id: membership_type_id } end # def options_hash # { # 'PackageID' => membership_type_id # }.to_json # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
centaman-0.2.0 | lib/centaman/service/package.rb |