class MyJohnDeere::Boundary

Attributes

field_id[RW]

Public Class Methods

new(json_object, access_token = nil, field_id = nil) click to toggle source
Calls superclass method
# File lib/myjohndeere/boundary.rb, line 9
def initialize(json_object, access_token = nil, field_id = nil)
  super(json_object, access_token)
  self.field_id = field_id
  self.active = self.active.to_s.downcase == "true"
  # This doesn't exist currently, not sure why
  self.field_id ||= extract_link_with_rel_from_list("fields", /\/(\d+)\/(.+?)\/fields\Z/)
end