mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 17:55:55 +02:00
parent
a9f04f6f0e
commit
c41d329f79
5 changed files with 20 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
class DomainPresenter
|
||||
delegate :name, :registrant_name, :registrant_id, :registrant_code, to: :domain
|
||||
delegate :name, :auth_info, :registrant_name, :registrant_id, :registrant_code, to: :domain
|
||||
|
||||
def initialize(domain:, view:)
|
||||
@domain = domain
|
||||
|
|
|
@ -19,6 +19,7 @@ class Registrar::DomainListCSVPresenter
|
|||
def header
|
||||
columns = %w(
|
||||
domain_name
|
||||
auth_info
|
||||
registrant_name
|
||||
registrant_code
|
||||
expire_time
|
||||
|
@ -32,9 +33,10 @@ class Registrar::DomainListCSVPresenter
|
|||
def domain_to_row(domain:)
|
||||
row = []
|
||||
row[0] = domain.name
|
||||
row[1] = domain.registrant_name
|
||||
row[2] = domain.registrant_code
|
||||
row[3] = domain.expire_date
|
||||
row[1] = domain.auth_info
|
||||
row[2] = domain.registrant_name
|
||||
row[3] = domain.registrant_code
|
||||
row[4] = domain.expire_date
|
||||
row
|
||||
|
||||
CSV::Row.new([], row)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue