Class: Postmen::Billing

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/postmen/billing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#to_hash

Constructor Details

#initialize(options) ⇒ Billing

Returns a new instance of Billing.



8
9
10
11
# File 'lib/postmen/billing.rb', line 8

def initialize(options)
  @paid_by = options[:paid_by]
  @method = options[:method]
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



5
6
7
# File 'lib/postmen/billing.rb', line 5

def method
  @method
end

Returns the value of attribute paid_by.



5
6
7
# File 'lib/postmen/billing.rb', line 5

def paid_by
  @paid_by
end