Class: GreenButtonClasses::LocalTimeParameters

Inherits:
GreenButtonEntry show all
Defined in:
lib/greenbutton/gb_classes.rb

Instance Attribute Summary collapse

Attributes inherited from GreenButtonEntry

#href_from_parent, #other_related, #related_hrefs

Instance Method Summary collapse

Methods inherited from GreenButtonEntry

#add_related_entry, #add_related_link, #all_rules, #assign_rule, #create_attributes, #doc, #entry_node, #find_by_href, #get_related_links, #initialize

Constructor Details

This class inherits a constructor from GreenButtonClasses::GreenButtonEntry

Instance Attribute Details

#usage_pointObject

Returns the value of attribute usage_point


284
285
286
# File 'lib/greenbutton/gb_classes.rb', line 284

def usage_point
  @usage_point
end

Instance Method Details

#additional_rulesObject


290
291
292
293
294
295
296
297
# File 'lib/greenbutton/gb_classes.rb', line 290

def additional_rules
  {
    dst_end_rule: Rule.new(:dst_end_rule, ".//dstEndRule", :string),
    dst_offset: Rule.new(:dst_offset, ".//dstOffset", :integer),
    dst_start_rule: Rule.new(:dst_start_rule, ".//dstStartRule", :string),
    tz_offset: Rule.new(:tz_offset, ".//tzOffset", :integer)
  }
end

#pre_rule_assignment(parent) ⇒ Object


286
287
288
# File 'lib/greenbutton/gb_classes.rb', line 286

def pre_rule_assignment(parent)
  self.usage_point = parent
end