Class: Recurly::Resources::Entitlement

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/entitlement.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Resource

#attributes

Method Summary

Methods inherited from Recurly::Resource

#==, #get_response, #inspect, #requires_client?, #to_json, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#created_atDateTime

Returns Time object was created.

Returns:

  • (DateTime)

    Time object was created.



11
# File 'lib/recurly/resources/entitlement.rb', line 11

define_attribute :created_at, DateTime

#customer_permissionCustomerPermission

Returns:



15
# File 'lib/recurly/resources/entitlement.rb', line 15

define_attribute :customer_permission, :CustomerPermission

#granted_byArray[GrantedBy]

Returns Subscription or item that granted the customer permission.

Returns:

  • (Array[GrantedBy])

    Subscription or item that granted the customer permission.



19
# File 'lib/recurly/resources/entitlement.rb', line 19

define_attribute :granted_by, Array, { :item_type => :GrantedBy }

#objectString

Returns Entitlement.

Returns:

  • (String)

    Entitlement



23
# File 'lib/recurly/resources/entitlement.rb', line 23

define_attribute :object, String

#updated_atDateTime

Returns Time the object was last updated.

Returns:

  • (DateTime)

    Time the object was last updated



27
# File 'lib/recurly/resources/entitlement.rb', line 27

define_attribute :updated_at, DateTime