Class: ChargeBee::Address

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/address.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#addrObject

Returns the value of attribute addr.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def addr
  @addr
end

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def city
  @city
end

#companyObject

Returns the value of attribute company.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def company
  @company
end

#countryObject

Returns the value of attribute country.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def country
  @country
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def email
  @email
end

#extended_addrObject

Returns the value of attribute extended_addr.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def extended_addr
  @extended_addr
end

#extended_addr2Object

Returns the value of attribute extended_addr2.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def extended_addr2
  @extended_addr2
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def first_name
  @first_name
end

#labelObject

Returns the value of attribute label.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def label
  @label
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def last_name
  @last_name
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def phone
  @phone
end

#stateObject

Returns the value of attribute state.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def state
  @state
end

#state_codeObject

Returns the value of attribute state_code.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def state_code
  @state_code
end

#subscription_idObject

Returns the value of attribute subscription_id.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def subscription_id
  @subscription_id
end

#validation_statusObject

Returns the value of attribute validation_status.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def validation_status
  @validation_status
end

#zipObject

Returns the value of attribute zip.



4
5
6
# File 'lib/chargebee/models/address.rb', line 4

def zip
  @zip
end

Class Method Details

.retrieve(params, env = nil, headers = {}) ⇒ Object

OPERATIONS




10
11
12
# File 'lib/chargebee/models/address.rb', line 10

def self.retrieve(params, env=nil, headers={})
  Request.send('get', uri_path("addresses"), params, env, headers)
end

.update(params, env = nil, headers = {}) ⇒ Object



14
15
16
# File 'lib/chargebee/models/address.rb', line 14

def self.update(params, env=nil, headers={})
  Request.send('post', uri_path("addresses"), params, env, headers)
end