Class: CareerBuilder::Resume
- Inherits:
- BasicObject
- Defined in:
- lib/career_builder/resume.rb
Defined Under Namespace
Classes: LazyCollection
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #home_location ⇒ Object
-
#initialize(client, partial_resume) ⇒ Resume
constructor
A new instance of Resume.
- #real_contact_email ⇒ Object
Constructor Details
#initialize(client, partial_resume) ⇒ Resume
Returns a new instance of Resume.
7 8 9 10 |
# File 'lib/career_builder/resume.rb', line 7 def initialize(client, partial_resume) @partial_resume = partial_resume @client = client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object (private)
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/career_builder/resume.rb', line 22 def method_missing(meth, *args, &block) if partial_resume.respond_to?(meth) partial_resume.send(meth, *args, &block) else if full_resume.respond_to?(meth) full_resume.send(meth, *args, &block) else super end end end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/career_builder/resume.rb', line 5 def client @client end |
Instance Method Details
#home_location ⇒ Object
16 17 18 |
# File 'lib/career_builder/resume.rb', line 16 def home_location full_resume.home_location end |
#real_contact_email ⇒ Object
12 13 14 |
# File 'lib/career_builder/resume.rb', line 12 def real_contact_email full_resume.contact_email end |