Class: SubscriptionTermsType

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal-business/default.rb

Overview

urn:ebay:apis:eBLBaseComponentsSubscriptionTermsType

Constant Summary collapse

@@schema_type =
"SubscriptionTermsType"
@@schema_ns =
"urn:ebay:apis:eBLBaseComponents"
@@schema_attribute =
{
  XSD::QName.new(nil, "period") => "SOAP::SOAPString"
}
@@schema_element =
[
  ["amount", ["BasicAmountType", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "Amount")]]
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amount = nil) ⇒ SubscriptionTermsType

Returns a new instance of SubscriptionTermsType.



3754
3755
3756
3757
# File 'lib/paypal-business/default.rb', line 3754

def initialize(amount = nil)
  @amount = amount
  @__xmlattr = {}
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



3744
3745
3746
# File 'lib/paypal-business/default.rb', line 3744

def amount
  @amount
end

Instance Method Details

#xmlattr_periodObject



3746
3747
3748
# File 'lib/paypal-business/default.rb', line 3746

def xmlattr_period
  (@__xmlattr ||= {})[XSD::QName.new(nil, "period")]
end

#xmlattr_period=(value) ⇒ Object



3750
3751
3752
# File 'lib/paypal-business/default.rb', line 3750

def xmlattr_period=(value)
  (@__xmlattr ||= {})[XSD::QName.new(nil, "period")] = value
end