Class: LabelMe::SalesAll::Row
- Inherits:
-
Object
- Object
- LabelMe::SalesAll::Row
- Defined in:
- lib/label_me/sales_all/row.rb
Class Method Summary collapse
Instance Method Summary collapse
- #customer_address ⇒ Object
- #customer_email ⇒ Object
-
#customer_id ⇒ Object
Accessors for customer column.
- #customer_name ⇒ Object
- #customer_phone_number ⇒ Object
- #customer_postal_code ⇒ Object
-
#initialize(row) ⇒ Row
constructor
A new instance of Row.
- #line_item_code ⇒ Object
-
#line_item_id ⇒ Object
Accessors for line item column.
- #line_item_quantity ⇒ Object
- #line_item_unit_price ⇒ Object
- #order_date ⇒ Object
-
#order_id ⇒ Object
Accessors for general column.
- #paid? ⇒ Boolean
- #recipient_address ⇒ Object
-
#recipient_id ⇒ Object
Accessors for recipient column.
- #recipient_kana ⇒ Object
- #recipient_labeling ⇒ Object
- #recipient_message_card_body ⇒ Object
- #recipient_message_card_type ⇒ Object
- #recipient_name ⇒ Object
- #recipient_notes ⇒ Object
- #recipient_phone_number ⇒ Object
- #recipient_postal_code ⇒ Object
- #total_message_card_charge ⇒ Object
- #total_shipping_charge ⇒ Object
- #wished_delivery_date ⇒ Object
- #wished_delivery_timezone ⇒ Object
Constructor Details
#initialize(row) ⇒ Row
Returns a new instance of Row.
15 16 17 |
# File 'lib/label_me/sales_all/row.rb', line 15 def initialize(row) @row = row end |
Class Method Details
Instance Method Details
#customer_address ⇒ Object
47 48 49 |
# File 'lib/label_me/sales_all/row.rb', line 47 def customer_address @row["購入者 都道府県"].to_s + @row["購入者 住所"].to_s end |
#customer_email ⇒ Object
51 52 53 |
# File 'lib/label_me/sales_all/row.rb', line 51 def customer_email @row["購入者 メールアドレス"].to_s end |
#customer_id ⇒ Object
Accessors for customer column
35 36 37 |
# File 'lib/label_me/sales_all/row.rb', line 35 def customer_id @row["購入者 顧客ID"].to_s end |
#customer_name ⇒ Object
39 40 41 |
# File 'lib/label_me/sales_all/row.rb', line 39 def customer_name @row["購入者 名前"].to_s end |
#customer_phone_number ⇒ Object
55 56 57 |
# File 'lib/label_me/sales_all/row.rb', line 55 def customer_phone_number @row["購入者 電話番号"].to_s end |
#customer_postal_code ⇒ Object
43 44 45 |
# File 'lib/label_me/sales_all/row.rb', line 43 def customer_postal_code @row["購入者 郵便番号"].to_s end |
#line_item_code ⇒ Object
131 132 133 |
# File 'lib/label_me/sales_all/row.rb', line 131 def line_item_code @row["購入商品 商品ID"].to_s end |
#line_item_id ⇒ Object
Accessors for line item column
127 128 129 |
# File 'lib/label_me/sales_all/row.rb', line 127 def line_item_id @row["売上詳細ID"].to_s end |
#line_item_quantity ⇒ Object
139 140 141 |
# File 'lib/label_me/sales_all/row.rb', line 139 def line_item_quantity @row["購入商品 販売個数"].to_i end |
#line_item_unit_price ⇒ Object
135 136 137 |
# File 'lib/label_me/sales_all/row.rb', line 135 def line_item_unit_price @row["購入商品 販売価格(消費税込)"].to_i end |
#order_date ⇒ Object
27 28 29 |
# File 'lib/label_me/sales_all/row.rb', line 27 def order_date Date.parse(@row["受注日"]) end |
#order_id ⇒ Object
Accessors for general column
23 24 25 |
# File 'lib/label_me/sales_all/row.rb', line 23 def order_id @row["売上ID"].to_s end |
#paid? ⇒ Boolean
67 68 69 |
# File 'lib/label_me/sales_all/row.rb', line 67 def paid? /入金済/ === @row["入金状態"] end |
#recipient_address ⇒ Object
91 92 93 |
# File 'lib/label_me/sales_all/row.rb', line 91 def recipient_address @row["配送先 都道府県名"].to_s + @row["配送先 住所"].to_s end |
#recipient_id ⇒ Object
Accessors for recipient column
75 76 77 |
# File 'lib/label_me/sales_all/row.rb', line 75 def recipient_id @row["配送先ID"].to_s end |
#recipient_kana ⇒ Object
83 84 85 |
# File 'lib/label_me/sales_all/row.rb', line 83 def recipient_kana @row["配送先 フリガナ"].to_s end |
#recipient_labeling ⇒ Object
107 108 109 |
# File 'lib/label_me/sales_all/row.rb', line 107 def recipient_labeling @row["配送先 熨斗(のし)"].to_s end |
#recipient_message_card_body ⇒ Object
115 116 117 |
# File 'lib/label_me/sales_all/row.rb', line 115 def @row["配送先 メッセージカード内容"].to_s end |
#recipient_message_card_type ⇒ Object
111 112 113 |
# File 'lib/label_me/sales_all/row.rb', line 111 def @row["配送先 メッセージカード種類"].to_s end |
#recipient_name ⇒ Object
79 80 81 |
# File 'lib/label_me/sales_all/row.rb', line 79 def recipient_name @row["配送先 名前"].to_s end |
#recipient_notes ⇒ Object
119 120 121 |
# File 'lib/label_me/sales_all/row.rb', line 119 def recipient_notes @row["配送先 備考"].to_s end |
#recipient_phone_number ⇒ Object
95 96 97 |
# File 'lib/label_me/sales_all/row.rb', line 95 def recipient_phone_number @row["配送先 電話番号"].to_s end |
#recipient_postal_code ⇒ Object
87 88 89 |
# File 'lib/label_me/sales_all/row.rb', line 87 def recipient_postal_code @row["配送先 郵便番号"].to_s end |
#total_message_card_charge ⇒ Object
63 64 65 |
# File 'lib/label_me/sales_all/row.rb', line 63 def @row["メッセージカード手数料合計"].to_i end |
#total_shipping_charge ⇒ Object
59 60 61 |
# File 'lib/label_me/sales_all/row.rb', line 59 def total_shipping_charge @row["送料合計"].to_i end |
#wished_delivery_date ⇒ Object
99 100 101 |
# File 'lib/label_me/sales_all/row.rb', line 99 def wished_delivery_date @row["配送希望日"].to_s end |
#wished_delivery_timezone ⇒ Object
103 104 105 |
# File 'lib/label_me/sales_all/row.rb', line 103 def wished_delivery_timezone @row["配送希望時間"].to_s end |