Class: Nusii::Proposal

Inherits:
Resource show all
Extended by:
Crud::Create, Crud::Destroy, Crud::Get, Crud::List
Includes:
Crud::DestroySelf, Crud::Save
Defined in:
lib/nusii/proposal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Crud::Get

get

Methods included from Crud::List

list

Methods included from Crud::Create

create

Methods included from Crud::Destroy

destroy

Methods included from Crud::DestroySelf

#destroy

Methods included from Crud::Save

#save

Methods inherited from Resource

class_name, #editable_params, #initialize, #save_params

Constructor Details

This class inherits a constructor from Nusii::Resource

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def 
  @account_id
end

#client_emailObject

Returns the value of attribute client_email.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def client_email
  @client_email
end

#client_idObject

Returns the value of attribute client_id.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def client_id
  @client_id
end

#display_dateObject

Returns the value of attribute display_date.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def display_date
  @display_date
end

#document_section_titleObject

Returns the value of attribute document_section_title.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def document_section_title
  @document_section_title
end

#exclude_totalObject

Returns the value of attribute exclude_total.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def exclude_total
  @exclude_total
end

#exclude_total_in_pdfObject

Returns the value of attribute exclude_total_in_pdf.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def exclude_total_in_pdf
  @exclude_total_in_pdf
end

#expires_atObject

Returns the value of attribute expires_at.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def expires_at
  @expires_at
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def id
  @id
end

#prepared_by_idObject

Returns the value of attribute prepared_by_id.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def prepared_by_id
  @prepared_by_id
end

#public_idObject

Returns the value of attribute public_id.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def public_id
  @public_id
end

#reportObject

Returns the value of attribute report.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def report
  @report
end

#sectionsObject

Returns the value of attribute sections.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def sections
  @sections
end

#sender_idObject

Returns the value of attribute sender_id.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def sender_id
  @sender_id
end

#statusObject

Returns the value of attribute status.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def status
  @status
end

#themeObject

Returns the value of attribute theme.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def theme
  @theme
end

#titleObject

Returns the value of attribute title.



10
11
12
# File 'lib/nusii/proposal.rb', line 10

def title
  @title
end

Instance Method Details

#send_proposal(params) ⇒ Object



17
18
19
20
# File 'lib/nusii/proposal.rb', line 17

def send_proposal params
  requester = Nusii::Request.new
  requester.send_call self.class, self, params
end