Class: Conekta::ShippingLine
- Inherits:
-
Resource
- Object
- Hash
- ConektaObject
- Resource
- Conekta::ShippingLine
- Defined in:
- lib/conekta/shipping_line.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#carrier ⇒ Object
Returns the value of attribute carrier.
-
#description ⇒ Object
Returns the value of attribute description.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#shipping_line_method ⇒ Object
Returns the value of attribute shipping_line_method.
-
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
Attributes inherited from Resource
Attributes inherited from ConektaObject
Instance Method Summary collapse
Methods included from Operations::CustomAction
Methods included from Operations::Update
Methods included from Operations::Delete
Methods inherited from Resource
_url, #create_member_with_relation, #initialize, underscored_class
Methods inherited from ConektaObject
#class_name, class_name, #create_attr, #first, #initialize, #inspect, #last, #load_from, #set_val, #to_s, #unset_key
Constructor Details
This class inherits a constructor from Conekta::Resource
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def amount @amount end |
#carrier ⇒ Object
Returns the value of attribute carrier.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def carrier @carrier end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def description @description end |
#metadata ⇒ Object
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def @metadata end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def parent_id @parent_id end |
#shipping_line_method ⇒ Object
Returns the value of attribute shipping_line_method.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def shipping_line_method @shipping_line_method end |
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
7 8 9 |
# File 'lib/conekta/shipping_line.rb', line 7 def tracking_number @tracking_number end |
Instance Method Details
#_url ⇒ Object
10 11 12 13 14 |
# File 'lib/conekta/shipping_line.rb', line 10 def _url ensure_id "#{self.order._url}#{self.class._url}/#{id}" end |
#delete ⇒ Object
16 17 18 |
# File 'lib/conekta/shipping_line.rb', line 16 def delete self.delete_member('order', 'shipping_lines') end |