Class: Centaman::Service::MembershipType
- Inherits:
-
Centaman::Service
- Object
- Wrapper
- Centaman::Service
- Centaman::Service::MembershipType
- Includes:
- JsonWrapper
- Defined in:
- lib/centaman/service/membership_type.rb
Constant Summary
Constants inherited from Wrapper
Instance Attribute Summary
Attributes inherited from Wrapper
#api_password, #api_token, #api_url, #api_username, #proxie_host, #proxie_password, #proxie_port, #proxie_user
Class Method Summary collapse
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_init, #after_post, #fetch_all, #post, #put
Methods inherited from Wrapper
#after_init, #generate_token, #headers, #initialize, #options, #options_hash, #payload, #payload_key, #proxy_hash, #wrap_request_in_case_of_timeout
Constructor Details
This class inherits a constructor from Centaman::Wrapper
Class Method Details
.find(id) ⇒ Object
13 14 15 |
# File 'lib/centaman/service/membership_type.rb', line 13 def self.find(id) new.objects.detect {|obj| obj.id == id } end |
Instance Method Details
#endpoint ⇒ Object
5 6 7 |
# File 'lib/centaman/service/membership_type.rb', line 5 def endpoint '/member_services/MembershipType' end |
#object_class ⇒ Object
9 10 11 |
# File 'lib/centaman/service/membership_type.rb', line 9 def object_class Centaman::Object::MembershipType end |