Class: Recurly::Request

Inherits:
Object
  • Object
show all
Extended by:
Schema::RequestCaster, Schema::ResourceCaster, Schema::SchemaFactory
Includes:
Schema::SchemaValidator
Defined in:
lib/recurly/request.rb

Overview

This class represents a request to Recurly. It's used to validate requests data as well as cast and serialize the request data to JSON.

Direct Known Subclasses

Recurly::Requests::AccountAcquisitionCost, Recurly::Requests::AccountAcquisitionUpdate, Recurly::Requests::AccountCreate, Recurly::Requests::AccountPurchase, Recurly::Requests::AccountReference, Recurly::Requests::AccountUpdate, Recurly::Requests::AddOnCreate, Recurly::Requests::AddOnPricing, Recurly::Requests::AddOnUpdate, Recurly::Requests::Address, Recurly::Requests::BillingInfoCreate, Recurly::Requests::BillingInfoVerify, Recurly::Requests::BillingInfoVerifyCVV, Recurly::Requests::CouponBulkCreate, Recurly::Requests::CouponCreate, Recurly::Requests::CouponPricing, Recurly::Requests::CouponRedemptionCreate, Recurly::Requests::CouponUpdate, Recurly::Requests::CustomField, Recurly::Requests::DunningCampaignsBulkUpdate, Recurly::Requests::ExternalAccountCreate, Recurly::Requests::ExternalAccountUpdate, Recurly::Requests::ExternalProductCreate, Recurly::Requests::ExternalProductReferenceBase, Recurly::Requests::ExternalProductReferenceCreate, Recurly::Requests::ExternalProductUpdate, Recurly::Requests::ExternalRefund, Recurly::Requests::ExternalTransaction, Recurly::Requests::GatewayAttributes, Recurly::Requests::GeneralLedgerAccountCreate, Recurly::Requests::GeneralLedgerAccountUpdate, Recurly::Requests::GiftCardCreate, Recurly::Requests::GiftCardDeliveryCreate, Recurly::Requests::GiftCardRedeem, Recurly::Requests::InvoiceAddress, Recurly::Requests::InvoiceCollect, Recurly::Requests::InvoiceCreate, Recurly::Requests::InvoiceRefund, Recurly::Requests::InvoiceUpdate, Recurly::Requests::ItemCreate, Recurly::Requests::ItemUpdate, Recurly::Requests::LineItemCreate, Recurly::Requests::LineItemRefund, Recurly::Requests::MeasuredUnitCreate, Recurly::Requests::MeasuredUnitUpdate, Recurly::Requests::PercentageTier, Recurly::Requests::PercentageTiersByCurrency, Recurly::Requests::PlanCreate, Recurly::Requests::PlanHostedPages, Recurly::Requests::PlanPricing, Recurly::Requests::PlanRampInterval, Recurly::Requests::PlanRampPricing, Recurly::Requests::PlanUpdate, Recurly::Requests::Pricing, Recurly::Requests::ProrationSettings, Recurly::Requests::PurchaseCreate, Recurly::Requests::ShippingAddressCreate, Recurly::Requests::ShippingAddressUpdate, Recurly::Requests::ShippingFeeCreate, Recurly::Requests::ShippingMethodCreate, Recurly::Requests::ShippingMethodUpdate, Recurly::Requests::ShippingPurchase, Recurly::Requests::SubscriptionAddOnCreate, Recurly::Requests::SubscriptionAddOnPercentageTier, Recurly::Requests::SubscriptionAddOnTier, Recurly::Requests::SubscriptionAddOnUpdate, Recurly::Requests::SubscriptionCancel, Recurly::Requests::SubscriptionChangeBillingInfoCreate, Recurly::Requests::SubscriptionChangeCreate, Recurly::Requests::SubscriptionChangeShippingCreate, Recurly::Requests::SubscriptionCreate, Recurly::Requests::SubscriptionPause, Recurly::Requests::SubscriptionPurchase, Recurly::Requests::SubscriptionRampInterval, Recurly::Requests::SubscriptionShippingCreate, Recurly::Requests::SubscriptionShippingPurchase, Recurly::Requests::SubscriptionShippingUpdate, Recurly::Requests::SubscriptionUpdate, Recurly::Requests::Tier, Recurly::Requests::TierPricing, Recurly::Requests::UsageCreate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Schema::RequestCaster

cast_request

Methods included from Schema::ResourceCaster

cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



11
12
13
# File 'lib/recurly/request.rb', line 11

def attributes
  @attributes
end

Instance Method Details

#==(other_resource) ⇒ Object



13
14
15
# File 'lib/recurly/request.rb', line 13

def ==(other_resource)
  self.attributes == other_resource.attributes
end

#to_sObject



17
18
19
# File 'lib/recurly/request.rb', line 17

def to_s
  self.inspect
end