Class: ApRubySdk::Plan

Inherits:
ApiResource show all
Includes:
ApiOperations::Create, ApiOperations::List, ApiOperations::Retrieve
Defined in:
lib/ap_ruby_sdk/plan.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResource

#mode

Attributes inherited from BaseModel

#created, #id, #mode, #updated

Class Method Summary collapse

Methods included from ApiOperations::List

included

Methods included from ApiOperations::Retrieve

included

Methods included from ApiOperations::Create

included

Methods inherited from ApiResource

construct_object, url_with_prefix

Methods inherited from BaseModel

#attributes=, #initialize, #to_json

Constructor Details

This class inherits a constructor from ApRubySdk::BaseModel

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



7
8
9
# File 'lib/ap_ruby_sdk/plan.rb', line 7

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency.



7
8
9
# File 'lib/ap_ruby_sdk/plan.rb', line 7

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/ap_ruby_sdk/plan.rb', line 7

def description
  @description
end

#intervalObject

Returns the value of attribute interval.



7
8
9
# File 'lib/ap_ruby_sdk/plan.rb', line 7

def interval
  @interval
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/ap_ruby_sdk/plan.rb', line 7

def name
  @name
end

#periodObject

Returns the value of attribute period.



7
8
9
# File 'lib/ap_ruby_sdk/plan.rb', line 7

def period
  @period
end

Class Method Details

.list_membersObject



18
19
20
# File 'lib/ap_ruby_sdk/plan.rb', line 18

def self.list_members
  :plans
end

.urlObject



14
15
16
# File 'lib/ap_ruby_sdk/plan.rb', line 14

def self.url
  '/plans'
end