Class: Jbr::Mock::Property
- Defined in:
- lib/jbr/mock/property.rb
Overview
A property that reads from Jbr.mock instead of Jobber.
Constant Summary
Constants inherited from Property
Property::COORDINATES, Property::CREATE, Property::FIELDS, Property::MATCHED, Property::SELECTION
Constants included from Cliental
Cliental::FIELDS, Cliental::SELECTION
Instance Method Summary collapse
- #city ⇒ Object
- #client ⇒ Object
-
#id ⇒ Object?
The values the app asked for.
- #street ⇒ Object
- #zip ⇒ Object
Methods inherited from Property
#address, address_from, fields_from, #find_or_create_for
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#city ⇒ Object
9 |
# File 'lib/jbr/mock/property.rb', line 9 def city = @node[:city] |
#client ⇒ Object
13 |
# File 'lib/jbr/mock/property.rb', line 13 def client = Mock::Client.new(node: @node.fetch(:client, {})) |
#id ⇒ Object?
Returns the values the app asked for.
5 |
# File 'lib/jbr/mock/property.rb', line 5 def id = @node[:id] |
#street ⇒ Object
7 |
# File 'lib/jbr/mock/property.rb', line 7 def street = @node[:street] |
#zip ⇒ Object
11 |
# File 'lib/jbr/mock/property.rb', line 11 def zip = @node[:zip] |